On 2005-03-11 17:05:43 +0000, Nikita Schmidt wrote:
> The information about kernel-image package and modules you gave me was
> very helpful.  Now, what happens if you:
>  - open another mixer,

gnome-volume-control

>  - change the microphone value (microphone input gain or something),
>  - make sure it has changed by closing and opening the same mixer,

Yes, the previous value has been remembered.

>  - then close the mixer,
>  - and run tkmixer under strace:
> will there be any difference in tkmixer's behaviour, particularly with
> respect to which ioctl causes EPERM?

Yes, I still get an error (BTW, it should be more verbose), but
something has changed in the strace output.

Here's what I got when I hadn't changed the microphone value:

open("/dev/mixer", O_RDWR)              = 9
ioctl(9, 0x40044dfe, 0x100c7f74)        = 0
ioctl(9, 0x40044dfb, 0x100c7f78)        = 0
ioctl(9, 0x40044dfd, 0x100c7f7c)        = 0
ioctl(9, 0x40044dff, 0x7ffff038)        = 0
ioctl(9, 0x40044d00, 0x7ffff03c)        = 0
write(8, "\1\30\0\r\4\300\0\n\0\0\0%\0\0\0\0\0\1\0\1\0\0\0\1\0\0"..., 548) = 548
read(8, "[EMAIL PROTECTED]"..., 32) = 32
write(8, "7\30\0\5\4\300\0\26\0\0\0%\0\0\0\4\0\303\303\3037\0\0\5"..., 96) = 96
read(8, "\1\377\0E\0\0\0\0\0\0\0\0\0\0\216l\0\0\0\0\20\25\22\374"..., 32) = 32
ioctl(9, 0xc0044d00, 0x7fffef00)        = 0
ioctl(9, 0x40044dff, 0x7fffef00)        = 0
ioctl(9, 0xc0044dff, 0x7fffef00)        = 0
ioctl(9, 0x40044d05, 0x7ffff03c)        = 0
ioctl(9, 0xc0044d05, 0x7fffef00)        = 0
ioctl(9, 0x40044dff, 0x7fffef00)        = 0
ioctl(9, 0xc0044dff, 0x7fffef00)        = 0
ioctl(9, 0x40044d06, 0x7ffff03c)        = 0
ioctl(9, 0xc0044d06, 0x7fffef00)        = 0
ioctl(9, 0x40044dff, 0x7fffef00)        = 0
ioctl(9, 0xc0044dff, 0x7fffef00)        = 0
ioctl(9, 0x40044d07, 0x7ffff03c)        = -1 EPERM (Operation not permitted)
write(2, "tkmixer: ioctl error on device \""..., 76tkmixer: ioctl error on 
device "/dev/mixer"
reason: Operation not permitted
) = 76

And after using gnome-volume-control:

open("/dev/mixer", O_RDWR)              = 9
ioctl(9, 0x40044dfe, 0x100c7f74)        = 0
ioctl(9, 0x40044dfb, 0x100c7f78)        = 0
ioctl(9, 0x40044dfd, 0x100c7f7c)        = 0
ioctl(9, 0x40044dff, 0x7ffff038)        = 0
ioctl(9, 0x40044d00, 0x7ffff03c)        = 0
write(8, "\1\30\0\r\5\0\0\n\0\0\0%\0\0\0\0\0\1\0\1\0\0\0\1\0\0\0"..., 548) = 548
read(8, "[EMAIL PROTECTED]"..., 32) = 32
write(8, "7\30\0\5\5\0\0\26\0\0\0%\0\0\0\4\0\303\303\3037\0\0\5\5"..., 96) = 96
read(8, "\1\377\0E\0\0\0\0\0\0\0\0\0\0\20\\\0\0\0\0\20\25\22\374"..., 32) = 32
ioctl(9, 0xc0044d00, 0x7fffef00)        = 0
ioctl(9, 0x40044dff, 0x7fffef00)        = 0
ioctl(9, 0xc0044dff, 0x7fffef00)        = 0
ioctl(9, 0x40044d05, 0x7ffff03c)        = 0
ioctl(9, 0xc0044d05, 0x7fffef00)        = 0
ioctl(9, 0x40044dff, 0x7fffef00)        = 0
ioctl(9, 0xc0044dff, 0x7fffef00)        = 0
ioctl(9, 0x40044d06, 0x7ffff03c)        = 0
ioctl(9, 0xc0044d06, 0x7fffef00)        = 0
ioctl(9, 0x40044dff, 0x7fffef00)        = 0
ioctl(9, 0xc0044dff, 0x7fffef00)        = 0
ioctl(9, 0x40044d07, 0x7ffff03c)        = 0
ioctl(9, 0xc0044d07, 0x7fffef00)        = 0
ioctl(9, 0x40044dff, 0x7fffef00)        = 0
ioctl(9, 0xc0044dff, 0x7fffef00)        = 0
ioctl(9, 0x40044d08, 0x7ffff03c)        = 0
writev(8, [{"5\1\0\4\5\0\0\32\0\0\0%\0\r\0\0077\303\0\4\5\0\0\33\5\0"..., 
2036}, {"\0\0L\0\0\0L\0\0\0-1\0\0-7\0\00075\0\0-7\0\0IS", 28}], 2) = 2064
ioctl(9, 0xc0044d08, 0x7fffef00)        = 0
ioctl(9, 0x40044dff, 0x7fffef00)        = 0
ioctl(9, 0xc0044dff, 0x7fffef00)        = 0
ioctl(9, 0x40044d0a, 0x7ffff03c)        = 0
ioctl(9, 0xc0044d0a, 0x7fffef00)        = 0
ioctl(9, 0x40044dff, 0x7fffef00)        = 0
ioctl(9, 0xc0044dff, 0x7fffef00)        = 0
ioctl(9, 0x40044d0b, 0x7ffff03c)        = 0
ioctl(9, 0xc0044d0b, 0x7fffef00)        = 0
ioctl(9, 0x40044dff, 0x7fffef00)        = 0
ioctl(9, 0xc0044dff, 0x7fffef00)        = 0
ioctl(9, 0x40044d0c, 0x7ffff03c)        = 0
ioctl(9, 0xc0044d0c, 0x7fffef00)        = -1 EPERM (Operation not permitted)
write(2, "tkmixer: ioctl error on device \""..., 76tkmixer: ioctl error on 
device "/dev/mixer"
reason: Operation not permitted
) = 76

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to