penaiple

How to make the mute button on X200(s/t), T400(s), T500, and W500 work properly

The mute button on GM45 ThinkPads doesn't work properly under GNU (and probably other operating systems that aren't Microshaft Winglows) The EC (Embedded Controller) doesn't map the button to the actual “mute” button like on external keyboards, but rather makes it mute the hardware itself, regardless of which operating system you run. To use it for your software mixer's mute function, you need to remap it:


For libreboot/coreboot/osboot/etc: make a file called /etc/systemd/system/mutekey.service and paste this into it:

[Unit]
Description=mutekey
After=suspend.target

[Service]
Type=simple
ExecStart=/usr/local/bin/mutekey.sh

[Install]
WantedBy=suspend.target

make another file called /usr/local/bin/mutekey.sh and paste this into it:

#!/bin/bash
ectool -w 0x03 -z 0x40

and don't forget to make it executable! chmod +x /usr/local/bin/mutekey.sh now enable and start the service systemctl enable mutekey systemctl start mutekey

the suspend.target part is required because the EC resets the value the systemd service set on suspending for some reason, so the ectool command has to be executed again after wakeup.*


For proprietary stock BIOSes (not recommended): pass acpi_osi=Linux as kernel parameter. in other words: edit /etc/default/grub, and add acpi_osi=Linux to the GRUB_CMDLINE_LINUX_DEFAULT line somewhere before or in between the rest of your kernel paremeters. now run grub-mkconfig -o /boot/grub/grub.cfg and reboot.


*At least on X200s models it's like this, I'm not sure about others, please DO let me know if you have any GM45 ThinkPad and are willing to test it out.

If you use another init system than soystemd, you're on your own for making re-execution on wakeup work, but let me know how to do it if you figure it out so i can add it here.

Twas the night before Christmas, when all trough the house Not a creature was stirring, not even a mouse. Barbie was typing in the kitchen with care, Taking skippers laptop and installing proprietary shitware.

Skipper sprung in a flash from the snug in her bed, Grabbing her laptop she scowled at Barbie and said: Ask toolbad? iTunes? Tools of the Jew! I wanted freedom! I wanted Linux GENTOO!

When out on the lawn there arose a surprise! An obese bearded man, with fire in his eyes, Straight trough the window he flew with a wheeze, The smell was unbearable, like stale semen and cheese.

“I'd just like to interject, you thick plastic bitch” “What you are referring to as 'Linux', is in fact, GNU/Linux, a tool to enrich” “Software freedom is the most important freedom of all. You've ruined her laptop, you're lucky I called!”

Stallman clicked his thick fingers and a classroom appeared. “You need re-education” he quipped, “Freedom is here!” “I don't care about freedom”, said Barbie, “I want a working PC” “I'll tell you what you fucking want”, replied Stallman, “Just wait and see!”

“Now gentoo! now, emacs! now git, bash, and lisp! On, glib! On, GNU-Screen!, on Mozilla and PostScript! To the top of the porch! To the top of the wall! Now install! install! Quickly, install!!”

As dry leaves that before the wild hurricane fly, When they meet with an obstacle, mount to the sky. So proprietary software was cast to the fire, GNU is a place of freedom, to surprise and inspire!

And then, in a twinkling, Stallman was gone, Skippers laptop barely worked, the WiFi-disconnected light shone. How am I supposed to use this? I want my files back! Don't worry said Barbie, We'll get you a Mac.