Archive for May 26th, 2018

Thinkpad volume buttons with openbox/lubuntu 18.04

Saturday, May 26th, 2018

Because I copied my old home partition from Linux Mint 17 to Lubuntu 18.04 I had to fix my ~/.config/openbox/lubuntu-rc.xml

<keybind key=”XF86AudioRaiseVolume”>
<action name=”Execute”>
<command>amixer -q sset Master 3%+</command>
</action>
</keybind>

<keybind key=”XF86AudioLowerVolume”>
<action name=”Execute”>
<command>amixer -q sset Master 3%-</command>
</action>
</keybind>

<keybind key=”XF86AudioMute”>
<action name=”Execute”>
<command>amixer -q sset Master 0%</command>
</action>
</keybind>

Thinkpad suspend button with lubuntu 18.04

Saturday, May 26th, 2018

I use Fn-F4 to put my Thinkpad T500 to sleep. So far that worked out of the box with all Linux Versions that I tried. But not this time with lubuntu 18.04. I fixed it like this:

2 new files :

/etc/acpi/events/lenovo-sleep

event=button/sleep SBTN 00000080 00000000 K
action=/etc/acpi/lenovo-sleep.sh

/etc/acpi/lenovo-sleep.sh

#!/bin/sh
pm-suspend

… and 3 commands:

sudo chmod 755 lenovo-sleep.sh
sudo /etc/init.d/acpid restart
sudo apt install pm-utils