[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kbdrate hangs on TiPowerBook



> When i try and set the keyboard rate with kbdrate it simply hangs i.e
> # kbdrate -r30 or kbdrate -r 30
> It just waits and nothing happens....

kbdrate is broken on powerpc:

execve("/sbin/kbdrate", ["kbdrate", "-r", "30", "2"], [/* 16 vars */]) = 0
uname({sys="Linux", node="michael", ...}) = 0
brk(0)                                  = 0x100113ec
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30014000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(0x3, 0x7fffee78)                = 0
mmap(NULL, 21721, PROT_READ, MAP_PRIVATE, 3, 0) = 0x30015000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\2]\324"..., 1024) = 1024
fstat64(0x3, 0x7fffee80)                = 0
mmap(0xfea5000, 1353948, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xfea5000
mprotect(0xffbb000, 215260, PROT_NONE)  = 0
mmap(0xffc5000, 155648, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0x110000) = 0xffc5000
mmap(0xffeb000, 18652, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xffeb000
close(3)                                = 0
munmap(0x30015000, 21721)               = 0
brk(0)                                  = 0x100113ec
brk(0x10011414)                         = 0x10011414
brk(0x10012000)                         = 0x10012000
ioctl(0, 0x4b52, 0x7ffffac8)            = -1 EINVAL (Invalid argument)
open("/dev/port", O_RDWR)               = 3
lseek(3, 100, SEEK_SET)                 = 100
read(3, "\377", 1)                      = 1
lseek(3, 100, SEEK_SET)                 = 100
read(3, "\377", 1)                      = 1
lseek(3, 100, SEEK_SET)                 = 100
read(3, "\377", 1)                      = 1

[ ad nauseam ]

The 'set keyboard repeat rate' ioctl is not implemented on powerpc IIRC
(mainly because nobody figured out how to set the repeat rate on Apple ADB
keyboards, I bet). The fallback method doesn't seem to work either, and
should be terminated after x failed attempts. Might be a case on
'fortituously compiled on powerpc', file a bug, please.

	Michael



Reply to: