| Summary: | net-print/hplip-3.12.10a - Can't print with USE flag policykit. | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Sylvain Alain (RETIRED) <d2_racing> |
| Component: | [OLD] Printing | Assignee: | Daniel Pielmeier <billie> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | d2_racing, freedesktop-bugs, nirbheek, printing, tomwij |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Sylvain Alain (RETIRED)
2012-11-08 18:15:32 UTC
I'm gonna post what Alexandre demands tonight. https://bugs.gentoo.org/show_bug.cgi?id=414195#c25 I found this inside the /var/log/critical : gentootux critical # cat current Nov 08 23:01:56 [hp-firmware] hp-firmware[21031]: error: hp-firmware -u/--gui requires Qt4 GUI support. Entering interactive mode. Nov 08 23:02:03 [hp-toolbox] hp-toolbox[21085]: error: Fax address book disabled - Python 2.3+ required. Nov 08 23:03:25 [hp-systray] hp-systray(hpdio)[2232]: error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_P1505?serial=CA5618F Nov 08 23:03:25 [hp-systray] hp-systray(hpdio)[2232]: error: Device not found Nov 08 23:03:28 [hp-firmware] hp-firmware[7222]: error: hp-firmware -u/--gui requires Qt4 GUI support. Entering interactive mode. Nov 08 23:03:31 [hp-firmware] hp-firmware[7222]: error: Device busy: hp:/usb/HP_LaserJet_P1505?serial=CA5618F Nov 08 23:03:31 [hp-firmware] hp-firmware[7222]: error: Error opening device (Device not found). Exiting. Nov 08 23:03:38 [hp-toolbox] hp-toolbox(UI)[21085]: error: Device busy: hp:/usb/HP_LaserJet_P1505?serial=CA5618F Nov 08 23:03:38 [hp-toolbox] hp-toolbox(UI)[21085]: error: Unable to print to printer. Please check device and try again. Nov 08 23:03:38 [hp-toolbox] hp-toolbox(UI)[21085]: error: Unable to communicate with printer HP_LaserJet_P1505. Please check the print CC-ing polkit maintainers: We continue here from bug #414195 There is a lot of unneeded information regarding the policykit issue in the previous bug. I appreciate any help as I m not familiar with policykit. For me it just works. (In reply to comment #2) > I found this inside the /var/log/critical : > The question was if there are any policykit related errors. Please restart cups and try to print. Afterwards try the following grep command and post all results for the time after the cups restart. grep -IHir "org.freedesktop.PolicyKit1" /var/log/ ~/.xsession-errors (In reply to comment #3) > CC-ing polkit maintainers: We continue here from bug #414195 There is a lot > of unneeded information regarding the policykit issue in the previous bug. I > appreciate any help as I m not familiar with policykit. For me it just works. What should be telling PolicyKit if user is authorized or not? I assume this is done by status of the user by ConsoleKit. Is the user using ConsoleKit and does 'ck-list-sessions' print the user as 'active = TRUE'? If not, then he propably should be addressing forums instead of bugzilla. Such as first post of [1] Then everything is at it should be, no authorization without user being a local user, or custom .rules file in /etc/polkit-1/rules.d/ (man polkit) that authorizes it for non-local users, specific group, or even a specific user... [1] http://forums.gentoo.org/viewtopic-t-858965-start-0.html ck-list-sessions Session1: unix-user = '1000' realname = '(null)' seat = 'Seat1' session-type = '' active = FALSE x11-display = '' x11-display-device = '' display-device = '/dev/tty1' remote-host-name = '' is-local = TRUE on-since = '2012-11-10T03:33:17.940229Z' login-session-id = '1' idle-since-hint = '2012-11-10T03:33:49.081809Z' Session2: unix-user = '1000' realname = '(null)' seat = 'Seat1' session-type = '' active = TRUE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '/dev/tty1' remote-host-name = '' is-local = TRUE on-since = '2012-11-10T03:33:19.837762Z' login-session-id = '1' I restarted cups and now it's working. Maybe it's related or not, but I found that when I reenable the policykit use flag for hplip, I need to restart cups to be able to print. |