As an experment, the
/dev/toshiba interface has been added to the toshiba_acpi driver. This interface, part of the original Linux toshiba driver, allows userspace programs to make calls to the Toshiba HCI (hardware control interface). Several utilities, such as
toshset , have been built on top of this interface. So by having the toshiba_acpi driver provide the same interface as the original toshiba driver, users can make use of existing utilities.
You will have to patch your kernel to use this experimental driver.
In the toshiba_acpi [download directory], look for the patch files with "dev_toshiba" in the name. The latest patch file should apply to the
toshiba_acpi.c file in the most recent 2.4 and 2.6 kernels.
You may also have to fiddle with your system's module autoloading system so that, when a program tries to access
/dev/toshiba, the toshiba_acpi driver is loaded rather than the original toshiba driver.
/etc/modutils/toshutils(for the 2.6 kernel it's
/etc/modprobe.d/aliases) and replacing "toshiba" with "toshiba_acpi". Then run the
If the driver is working correctly, you should be able to access
$ cat /proc/toshiba 1.1 0xfc8b 0.0 1.40 0x22cc 0x00
Now let's try a utility that uses
/dev/toshiba. A good test is toshset (version 1.65 or later):
$ toshset -q machine id: 0xfc8b BIOS version: 1.40 SCI version: 2.72 toshset version: 1.65 Toshiba Model: Libretto L5 HCI/SCI access mode: kernel LCD backlight: on fan: off Video out: internal: LCD flat panel: 1280x600, 18 bit TFT lcd brightness: bright lcd intensity: 5/7 battery percent: 31% cooling method: performance boot method: hard disk->floppy->CDROM wireless support: not present wireless switch: unavailable Wireless unavailable user password: not registered supervisor password: not registered owner string: [ max length: 513]
If things didn't go well with toshset, verify that the "HCI/SCI access mode" field is "kernel". Also, verify that the original toshiba driver module isn't loaded. You should only see toshiba_acpi in the list of loaded drivers, assuming you compiled it as a module:
$ lsmod | grep toshiba toshiba_acpi 6444 0