ThinkPad OSD

From ArchWiki
(Redirected from Tpb)
Jump to: navigation, search

Gnome-colors-add-files-to-archive.pngThis article is being considered for archiving.Gnome-colors-add-files-to-archive.png

Reason: last updated in 2014, about AUR package, mentions rc.conf (Discuss in Talk:ThinkPad OSD#)

New desktop environments (GNOME, KDE, and maybe even Xfce) support their own osd notifications for important events (volume up/down/mute and brightness up/down), which might be enough for most users. In order to use those notifications instead of the ones provided by TPB, map the keyboard-events of those keys to the proper keycodes.

Loading nvram at boot and give permission to access /dev/nvram

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: Mentions rc.conf (Discuss in Talk:ThinkPad OSD#)
  • Check with lsmod if the nvram module is loaded on boot
  • If not, add nvram to MODULES=(... nvram) in /etc/rc.conf
  • Check /dev/nvram permissions, your user must have read access to it.
  • Edit /etc/udev/rules.d/51-arch.rules (WARNING: It will be overwritten with new udev update!)
KERNEL=="nvram",   NAME="misc/%k", SYMLINK+="%k", GROUP="kmem", MODE="0660"
  • Note: this line seems to work better for some users:
KERNEL=="nvram", GROUP="kmem", MODE="0660"
Note: Check if there is already a line matching nvram in the /etc/udev/rules.d/ directory. In this case, you have to modify the existing entry, and do not create a tpb.rules.
Note: Write access to nvram is only needed to set volume with MIXER ON. see /etc/tpbrc.

Setting a more readable color and better placement


Starting with KDE

# Start Thinkpad OSD daemon
if [ -x /usr/bin/tpb ] &&  [ -w /dev/nvram ] && [ -r /dev/nvram ]; then
    /usr/bin/tpb -d

Starting with Fluxbox

# Start Thinkpad OSD daemon
if [ -x /usr/bin/tpb ] &&  [ -w /dev/nvram ] && [ -r /dev/nvram ]; then
    /usr/bin/tpb -d

Play a sound on volume change

You can play a sound when using the volume buttons (mac like).

CALLBACK /usr/local/bin/
[ "$1" = "volume" ] && exec canberra-gtk-play --file=/usr/share/sounds/freedesktop/stereo/audio-volume-change.oga


# chmod +x /usr/local/bin/

Finally, restart tpb.

See also