Re: [Bug 407529] Re: Camera (USB PTP) not accessible to non-root user
On Mon, Aug 3, 2009 at 8:46 AM, Martin Pittmartin.p...@ubuntu.com wrote: Ah, that explains it then. Not a wdm bug then, and I'm afraid this is not quite a supported configuration right now. You can try wrapping your X session scripts into a ck-launch-session x-session-program, or install a login manager. I installed 'slim' and then things worked as expected so I looked at what it was running and stole that and put in in my .xinitrc like so: /usr/bin/ssh-agent /usr/bin/ck-launch-session /usr/bin/dbus-launch --exit-with-session wmaker stopped slim then logged in with startx, and things worked as expected. In future if I find any other odd behaviour I'll test against using a login manager vs without. Thanks for your perseverance with this. -- Camera (USB PTP) not accessible to non-root user https://bugs.launchpad.net/bugs/407529 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 407529] Re: Camera (USB PTP) not accessible to non-root user
g0nad [2009-08-03 6:19 -]: what it was running and stole that and put in in my .xinitrc like so: /usr/bin/ssh-agent /usr/bin/ck-launch-session /usr/bin/dbus-launch --exit-with-session wmaker stopped slim then logged in with startx, and things worked as expected. That looks good. Great to hear! Martin -- Camera (USB PTP) not accessible to non-root user https://bugs.launchpad.net/bugs/407529 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 407529] Re: Camera (USB PTP) not accessible to non-root user
Oh, sorry for not having spotted this before. In bug 267238 you pasted your ck-list-sessions output: $ ck-list-sessions Session1: unix-user = '1000' realname = 'jamesc,,,' seat = 'Seat1' session-type = '' active = FALSE x11-display = '' x11-display-device = '' display-device = '/dev/tty1' remote-host-name = '' is-local = TRUE on-since = '2009-07-27T06:15:37.099359Z' login-session-id = '' idle-since-hint = '2009-07-27T06:16:08.001685Z' This means that you were logged in on a text console (VT1), but your X session does not have a consolekit session for some reason. Which login manager are you using? gdm and kdm get this alright, and even xdm should, though /etc/X11/Xsession.d/90consolekit . You said you are using window maker as WM, so I tentatively assign this to wdm. If you use another login manager, we can reassign. The window manager ideally registers a CK session by itself, but if not, it at least needs to run all the /etc/X11/Xsession.d/ scripts. ** Package changed: hal (Ubuntu) = wdm (Ubuntu) -- Camera (USB PTP) not accessible to non-root user https://bugs.launchpad.net/bugs/407529 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 407529] Re: Camera (USB PTP) not accessible to non-root user
On Mon, Aug 3, 2009 at 3:46 AM, Martin Pittmartin.p...@ubuntu.com wrote: Oh, sorry for not having spotted this before. In bug 267238 you pasted your ck-list-sessions output: $ ck-list-sessions Session1: unix-user = '1000' realname = 'jamesc,,,' seat = 'Seat1' session-type = '' active = FALSE x11-display = '' x11-display-device = '' display-device = '/dev/tty1' remote-host-name = '' is-local = TRUE on-since = '2009-07-27T06:15:37.099359Z' login-session-id = '' idle-since-hint = '2009-07-27T06:16:08.001685Z' This means that you were logged in on a text console (VT1), but your X session does not have a consolekit session for some reason. Which login manager are you using? gdm and kdm get this alright, and even xdm should, though /etc/X11/Xsession.d/90consolekit . You said you are using window maker as WM, so I tentatively assign this to wdm. If you use another login manager, we can reassign. I don't actually use a login manager, I've not found one I like. My laptop boots then I log into a text console and type 'startx'. The window manager ideally registers a CK session by itself, but if not, it at least needs to run all the /etc/X11/Xsession.d/ scripts. ** Package changed: hal (Ubuntu) = wdm (Ubuntu) -- Camera (USB PTP) not accessible to non-root user https://bugs.launchpad.net/bugs/407529 You received this bug notification because you are a direct subscriber of the bug. Status in “wdm” package in Ubuntu: Incomplete Bug description: Binary package hint: hal https://bugs.launchpad.net/ubuntu/+source/libgphoto2/+bug/267238 but brought across to a new bug report against HAL as requested. I can't access my Canon IXUS 80IS as a non root user. -- Camera (USB PTP) not accessible to non-root user https://bugs.launchpad.net/bugs/407529 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 407529] Re: Camera (USB PTP) not accessible to non-root user
Ah, that explains it then. Not a wdm bug then, and I'm afraid this is not quite a supported configuration right now. You can try wrapping your X session scripts into a ck-launch-session x-session-program, or install a login manager. ** Changed in: wdm (Ubuntu) Status: Incomplete = Invalid -- Camera (USB PTP) not accessible to non-root user https://bugs.launchpad.net/bugs/407529 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 407529] Re: Camera (USB PTP) not accessible to non-root user
dmesg found one USB device [10470.528029] usb 2-3: new high speed USB device using ehci_hcd and address 3 which supposedly is the camera (i. e. you plugged it in after starting hal in debug mode). hal then detected it correctly, and tried to apply ACLs, but there aren't any: 5783: adding ACL's for /dev/bus/usb/002/003 5783: releasing lock on /var/run/hald/acl-list I don't think that hal's ACL system is generally broken, since it does seem to work fine for some other devices: 5697: adding ACL's for /dev/sr0 5697: invoking 'setfacl -m u:1000:rw /dev/sr0' The camera device also has the proper access_control capability and is known by /usr/share/hal/fdi/preprobe/10osvendor/20-libgphoto2.fdi. Can you please give me the output of polkit-action|grep device-access ? ** Changed in: hal (Ubuntu) Status: New = Incomplete -- Camera (USB PTP) not accessible to non-root user https://bugs.launchpad.net/bugs/407529 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 407529] Re: Camera (USB PTP) not accessible to non-root user
Can you please give me the output of polkit-action|grep device- access # polkit-action | grep device-access org.freedesktop.hal.device-access.audio-player org.freedesktop.hal.device-access.camera org.freedesktop.hal.device-access.cdrom org.freedesktop.hal.device-access.dvb org.freedesktop.hal.device-access.fingerprint-reader org.freedesktop.hal.device-access.floppy org.freedesktop.hal.device-access.ieee1394-avc org.freedesktop.hal.device-access.ieee1394-iidc org.freedesktop.hal.device-access.joystick org.freedesktop.hal.device-access.modem org.freedesktop.hal.device-access.mouse org.freedesktop.hal.device-access.obex org.freedesktop.hal.device-access.pda org.freedesktop.hal.device-access.ppdev org.freedesktop.hal.device-access.printer org.freedesktop.hal.device-access.removable-block org.freedesktop.hal.device-access.scanner org.freedesktop.hal.device-access.sound org.freedesktop.hal.device-access.video org.freedesktop.hal.device-access.video4linux org.freedesktop.hal.device-access.smart-card-reader -- Camera (USB PTP) not accessible to non-root user https://bugs.launchpad.net/bugs/407529 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 407529] Re: Camera (USB PTP) not accessible to non-root user
** Attachment added: hal.log http://launchpadlibrarian.net/29762025/hal.log -- Camera (USB PTP) not accessible to non-root user https://bugs.launchpad.net/bugs/407529 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 407529] Re: Camera (USB PTP) not accessible to non-root user
** Attachment added: lshal.txt http://launchpadlibrarian.net/29762060/lshal.txt -- Camera (USB PTP) not accessible to non-root user https://bugs.launchpad.net/bugs/407529 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 407529] Re: Camera (USB PTP) not accessible to non-root user
** Attachment added: dmesg.log http://launchpadlibrarian.net/29762065/dmesg.log -- Camera (USB PTP) not accessible to non-root user https://bugs.launchpad.net/bugs/407529 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs