Comment 21 for bug 1354731

Revision history for this message
ALBATROS_L (philippe-gay11) wrote : Re: [Bug 1354731] Re: I can't the ink cartridge levels

Hello,

Thanks for your mail.

I get this on the screen :

HpLinux hplip-3.15.4 # hp-levels -g
warning: hp-levels should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 3.15.4)
Supply Levels Utility ver. 2.0

Copyright (c) 2001-15 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

hp-levels[11816]: debug: getDeviceUri(None, None, ('hp',), None, , True)
hp-levels[11816]: debug: Mode=0
hp-levels[11816]: debug: Cache miss: photosmart_c4100_series
hp-levels[11816]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-levels[11816]: debug: Searching for section [photosmart_c4100_series] in file /usr/share/hplip/data/models/models.dat
hp-levels[11816]: debug: Found section [photosmart_c4100_series] in file /usr/share/hplip/data/models/models.dat
hp-levels[11816]: debug: {'hp:/usb/Photosmart_C4100_series?serial=MY78FJ141R04J7': ['HP-Photosmart-C4100-series', 'Photosmart_C4100', 'Photosmart_C4100_2']}
Using device : hp:/usb/Photosmart_C4100_series?serial=MY78FJ141R04J7

hp-levels[11816]: debug: num_pens = 2
hp-levels[11816]: debug: pen 0 {'index': 0, 'kind': 3L, 'level': 194, 'ack': False, 'hp-ink': True, 'dvc': 60909, 'level-trigger': 0, 'virgin': True, 'health': 1, 'known': True, 'type': 0, 'id': 0}
hp-levels[11816]: debug: pen 1 {'index': 1, 'kind': 0L, 'level': 0, 'ack': True, 'hp-ink': True, 'dvc': 36885, 'level-trigger': 0, 'virgin': False, 'health': 0, 'known': False, 'type': 0, 'id': 17}

Done.
HpLinux hplip-3.15.4 #

The syslog's content is the following:

May 25 16:00:53 HpLinux python: io/hpmud/hpmud.c 387: [11816] hpmud_init()
May 25 16:00:53 HpLinux hp-levels: hp-levels[11816]: warning: hp-levels should not be run as root/superuser.
May 25 16:00:53 HpLinux hp-levels: io/hpmud/hpmud.c 530: [11816,9633,0,0,0,0] hpmud_device_open() uri=hp:/usb/Photosmart_C4100_series?serial=MY78FJ141R04J7 iomode=3
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 426: Found interface conf=0, iface=1, altset=0, index=1
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 388: Active kernel driver on interface=1 ret=1
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 392: Detaching kernel driver on interface=1 ret=0
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 531: claimed 7/1/2 interface
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 775: read actual device_id successfully fd=1 len=216
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 557: released 7/1/2 interface
May 25 16:00:53 HpLinux hp-levels: io/hpmud/hpmud.c 577: [11816] hpmud_get_device_id() dd=1
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 426: Found interface conf=0, iface=1, altset=0, index=1
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 388: Active kernel driver on interface=1 ret=0
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 531: claimed 7/1/2 interface
May 25 16:00:53 HpLinux kernel: [31618.827233] usblp0: removed
May 25 16:00:53 HpLinux kernel: [31618.827518] Did not find alt setting 1 for intf 0, config 1
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 775: read actual device_id successfully fd=1 len=216
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 557: released 7/1/2 interface
May 25 16:00:53 HpLinux hp-levels: io/hpmud/hpmud.c 577: [11816] hpmud_get_device_id() dd=1
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 426: Found interface conf=0, iface=1, altset=0, index=1
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 388: Active kernel driver on interface=1 ret=0
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 531: claimed 7/1/2 interface
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 775: read actual device_id successfully fd=1 len=216
May 25 16:00:53 HpLinux hp-levels: io/hpmud/musb.c 557: released 7/1/2 interface
May 25 16:00:53 HpLinux kernel: [31618.828078] Did not find alt setting 1 for intf 0, config 1
May 25 16:00:53 HpLinux kernel: [31618.828639] Did not find alt setting 1 for intf 0, config 1
May 25 16:00:53 HpLinux hp-levels: io/hpmud/hpmud.c 558: [11816] hpmud_device_close() dd=1
May 25 16:00:53 HpLinux hp-levels: io/hpmud/hpmud.c 392: [11816] hpmud_exit()
May 25 16:06:46 HpLinux rtkit-daemon[2887]: Successfully made thread 12002 of process 12002 (n/a) owned by '1000' RT at priority 3.
May 25 16:06:46 HpLinux rtkit-daemon[2887]: Supervising 5 threads of 2 processes of 1 users.

Regards,

Philippe

Le 25/05/2015 12:45, Gaurav Sood a écrit :
> Please install the latest 3.15.4 from hplipopensource.com and check.
>
> if issue still presists, Follow the steps
>
> 1) Navigate to hplip-3.15.4 directory in Downloads folder by running
>
> cd ~/Downloads/hplip-3.15.4/
>
> 2) open hpmudi.h file
>
> vi io/hpmud/hpmudi.h
>
> 3) Uncomment the following line and save the file
>
> // #define HPMUD_DEBUG
>
> 4) At the prompt run
> make
> sudo make install
>
>
> 5) Clear the syslog/messages file.
>
> sudo cp /dev/null /var/log/syslog
>
>
> 6) Run "hp-levels -g" at the terminal.
>
> 8) Attach the syslog/messages and output seen at terminal
>