-
Notifications
You must be signed in to change notification settings - Fork 24
iMac powerbutton support #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Thank You for this, FreekMank!!! Got this working between two iMac's: a 2011 21" as computer (Debian Trixie Gnome) and 2010 27" as monitor (KDE Neon). Earlier I tryed Debian Bookworm in monitor, but it worked only partially. KDE Neon did not find the acpid-support package, but this did not affect at all. I include here step-by-step installation instructions (for both smc_util and your powerbutton support), since it was and is altogether a quite complex procedure to get everything right... I also wrote an Unix-Linux question where the following is repeated. 1.Download smc_util to home directory:
2.Change to smc_util:
3.Compile SmcDumpkey with GCC:
4.Create files tdm_toggle.sh, powerbutton, powerbutton.sh and rc.local:
5.Change content of tdm_off.sh: 6.Change content of tdm_on.sh: 7.Create content to tdm_toggle.sh: 8.Create content to file powerbutton: 9.Create content to file powerbutton.sh. 10.Create content to file rc.local. 11.Change to root :
13.Make tdm_toggle.sh, rc.local and powerbutton.sh executable (change XXXXXXXXXX):
14.Install build-essential and acpid:
16.Copy file powerbutton.sh to /etc/acpi (change XXXXXXXXX):
|
|
Tried this set of instructions and it worked like a charm! One thing I will add is that you need to disable the Power Button in Ubuntu Settings -> Power -> General for the iMac. If you don't, switching between Target Display mode and the iMac itself will cause it to power off/suspend after a minute. Edit: I did this with a late 2009 iMac on Ubuntu 24.04, working as a monitor with a Optiplex 7071 running Ubuntu 24.04 |
Actually I get a blanc screen with tdm_off.sh with my own instructions. So I can not get it to work perfectly. Can you confirm the tdm_off really works in your machine? I've tried Debian 12 and 13 KDE Plasma and Linux Mint 22 Cinnamon in the monitor machine, not Ubuntu (but Mint is supposed to be as Ubuntu) EDIT: I thought I had it working and maybe it even worked - but after I re-installed an OS to monitor/display - machine, I could not get it working anymore... |
|
I'm still using the scripts to switch TDM using the power button (which call tdm_on.sh and tdm_off.sh), but I've never bothered to upgrade my Ubuntu installation, so I think I'm still running 20.04. |
|
@FreekMank
This is not the case. I could not get the the
This is similar as in issue #15 . I'm starting to think that the I have a 2010 model but perhaps it is late 2010 and Apple changed their SMC utility, issue #3. As Florian Echtler stated himself in issue #2
(In the main page Florian says his machine is 2010 - not 2011) Unfortunately I don't have MacOS installed anymore so I can't do the comparison Florian suggests - but if someone has it - please share your findings with us. But, since the Yours sincerely, |
|
If you have the same problem as I - |
Use iMac as external monitor by using the powerbutton to toggle TDM mode.