ThinkPad OSD

From ArchWiki
Revision as of 02:06, 26 July 2008 by Misfit138 (Talk | contribs) (New page: Category:Laptops (English) = Getting ThinkPad OSD working on Arch Linux = == Loading nvram at boot and give permission to access /dev/nvram == * Add nvram to MODULES=(... nvram) in /e...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Getting ThinkPad OSD working on Arch Linux

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

  • Add nvram to MODULES=(... nvram) in /etc/rc.conf

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 don't create a tpb.rules.


In udev 119-1

  • Edit file, WARNING: It will be overwritten with new udev update!

/etc/udev/rules.d/51-arch.rules

KERNEL=="nvram",   NAME="misc/%k", SYMLINK+="%k", GROUP="kmem", MODE="0666"


In older udev

  • Add udev rule for setting the permissions to /etc/udev/rules.d/

/etc/udev/rules.d/tpb.rules:

KERNEL=="nvram", NAME="misc/%k", SYMLINK+="%k", MODE="0660", GROUP="users"

Setting a more readable color and better placement

/etc/tpbrc:

OSDCOLOR    Green
OSDVERTICAL 0
OSDHORIZONTAL 0
OSDPOS      MIDDLE
OSDALIGN    CENTER

Starting with KDE

~/.kde/Autostart/tpb-startup.sh:

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

Starting with Fluxbox

~/.fluxbox/startup

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