You are not logged in.

#1 2012-02-21 07:15:52

ILoveJapaneseGirls
Banned
Registered: 2009-09-05
Posts: 72

How to charge a device via USB?

Hello,

I have a device that can only be charged via USB, its battery is 3.7 V, 1000 mAh, 3.70 Wh.

It charges well in Windows, however in Linux I sometimes let it plugged in the whole night but in the end the battery is still empty. Linux does recognize the device and it can be mounted if necessary, it just does not charge it.

What could be the problem? Is there a way to check if charge is being transfered or not? Is it some configuration related to voltage or current?

Thanks!

Offline

#2 2012-02-21 11:18:08

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: How to charge a device via USB?

I have a Kindle that will not charge unless I 'eject' it. 'eject' is in the 'extra' repository if, by chance, you don't have it already installed.

# eject /dev/sdh

Offline

#3 2012-02-21 22:41:30

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,236

Re: How to charge a device via USB?

You might do a 'dmesg' but mostly any device I plug into it will charge (if so equipped), and doesn't require some odd-ball windows driver in order to do that (eye-wash driver).  But then on another distro, it won't, so it's not a hard and fast rule.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#4 2012-02-22 00:34:31

ILoveJapaneseGirls
Banned
Registered: 2009-09-05
Posts: 72

Re: How to charge a device via USB?

Okay, so I decided to connect, mount and eject it to see if it works.

Here are some log files that may be interesting:

dmesg:

[ 3552.419709] usb 1-6: new high-speed USB device number 4 using ehci_hcd
[ 3552.588036] usbcore: registered new interface driver uas
[ 3552.591117] Initializing USB Mass Storage driver...
[ 3552.591303] scsi6 : usb-storage 1-6:1.0
[ 3552.591449] usbcore: registered new interface driver usb-storage
[ 3552.591451] USB Mass Storage support registered.
[ 3553.591741] scsi 6:0:0:0: Direct-Access     DV Ts                     1.0  PQ: 0 ANSI: 0
[ 3553.595242] scsi 6:0:0:1: Direct-Access     DV Ts                     1.0  PQ: 0 ANSI: 0
[ 3553.599727] sd 6:0:0:0: [sdc] 35584 512-byte logical blocks: (18.2 MB/17.3 MiB)
[ 3553.600967] scsi 6:0:0:2: Direct-Access     PCSW                      1.0  PQ: 0 ANSI: 0
[ 3553.603601] sd 6:0:0:0: [sdc] Write Protect is off
[ 3553.603607] sd 6:0:0:0: [sdc] Mode Sense: 87 00 00 08
[ 3553.607215] sd 6:0:0:1: [sdd] 3913728 512-byte logical blocks: (2.00 GB/1.86 GiB)
[ 3553.609463] sd 6:0:0:2: [sde] 142336 512-byte logical blocks: (72.8 MB/69.5 MiB)
[ 3553.611590] sd 6:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 3553.613600] sd 6:0:0:2: [sde] Write Protect is on
[ 3553.613605] sd 6:0:0:2: [sde] Mode Sense: 87 00 80 08
[ 3553.615589] sd 6:0:0:1: [sdd] Write Protect is off
[ 3553.615594] sd 6:0:0:1: [sdd] Mode Sense: 87 00 00 08
[ 3553.619586] sd 6:0:0:1: [sdd] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 3553.621594] sd 6:0:0:2: [sde] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 3553.635846]  sdc: sdc1
[ 3553.646379]  sde: sde1
[ 3553.648630]  sdd: sdd1
[ 3553.663592] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[ 3553.669589] sd 6:0:0:1: [sdd] Attached SCSI removable disk
[ 3553.674587] sd 6:0:0:2: [sde] Attached SCSI disk
[ 3994.310665] sdc: detected capacity change from 18219008 to 0
[ 3996.863384] sdd: detected capacity change from 2003828736 to 0
[ 4224.955985] palimpsest[1273]: segfault at 20 ip 00007fa0dffd5d38 sp 00007ffff4096330 error 6 in libglib-2.0.so.0.3000.2[7fa0dffbb000+f3000]
[ 4227.705012] palimpsest[1275]: segfault at 20 ip 00007fdacbfacd38 sp 00007fffd2216b70 error 6 in libglib-2.0.so.0.3000.2[7fdacbf92000+f3000]
[ 4228.712239] palimpsest[1277]: segfault at 20 ip 00007f831ca99d38 sp 00007fff264876a0 error 6 in libglib-2.0.so.0.3000.2[7f831ca7f000+f3000]
[ 4246.633933] usb 1-6: USB disconnect, device number 4

messages.log:

Feb 21 22:03:37  kernel: [ 3552.419709] usb 1-6: new high-speed USB device number 4 using ehci_hcd
Feb 21 22:03:37  mtp-probe: checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:0b.1/usb1/1-6"
Feb 21 22:03:37  mtp-probe: bus: 1, device: 4 was not an MTP device
Feb 21 22:03:37  kernel: [ 3552.588036] usbcore: registered new interface driver uas
Feb 21 22:03:37  kernel: [ 3552.591117] Initializing USB Mass Storage driver...
Feb 21 22:03:37  kernel: [ 3552.591303] scsi6 : usb-storage 1-6:1.0
Feb 21 22:03:37  kernel: [ 3552.591449] usbcore: registered new interface driver usb-storage
Feb 21 22:03:37  kernel: [ 3552.591451] USB Mass Storage support registered.
Feb 21 22:03:38  kernel: [ 3553.591741] scsi 6:0:0:0: Direct-Access     DV Ts                     1.0  PQ: 0 ANSI: 0
Feb 21 22:03:38  kernel: [ 3553.595242] scsi 6:0:0:1: Direct-Access     DV Ts                     1.0  PQ: 0 ANSI: 0
Feb 21 22:03:38  kernel: [ 3553.599727] sd 6:0:0:0: [sdc] 35584 512-byte logical blocks: (18.2 MB/17.3 MiB)
Feb 21 22:03:38  kernel: [ 3553.600967] scsi 6:0:0:2: Direct-Access     PCSW                      1.0  PQ: 0 ANSI: 0
Feb 21 22:03:38  kernel: [ 3553.603601] sd 6:0:0:0: [sdc] Write Protect is off
Feb 21 22:03:38  kernel: [ 3553.607215] sd 6:0:0:1: [sdd] 3913728 512-byte logical blocks: (2.00 GB/1.86 GiB)
Feb 21 22:03:38  kernel: [ 3553.609463] sd 6:0:0:2: [sde] 142336 512-byte logical blocks: (72.8 MB/69.5 MiB)
Feb 21 22:03:38  kernel: [ 3553.611590] sd 6:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Feb 21 22:03:38  kernel: [ 3553.613600] sd 6:0:0:2: [sde] Write Protect is on
Feb 21 22:03:38  kernel: [ 3553.615589] sd 6:0:0:1: [sdd] Write Protect is off
Feb 21 22:03:38  kernel: [ 3553.619586] sd 6:0:0:1: [sdd] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Feb 21 22:03:38  kernel: [ 3553.621594] sd 6:0:0:2: [sde] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Feb 21 22:03:38  kernel: [ 3553.635846]  sdc: sdc1
Feb 21 22:03:38  kernel: [ 3553.646379]  sde: sde1
Feb 21 22:03:38  kernel: [ 3553.648630]  sdd: sdd1
Feb 21 22:03:38  kernel: [ 3553.663592] sd 6:0:0:0: [sdc] Attached SCSI removable disk
Feb 21 22:03:38  kernel: [ 3553.669589] sd 6:0:0:1: [sdd] Attached SCSI removable disk
Feb 21 22:03:38  kernel: [ 3553.674587] sd 6:0:0:2: [sde] Attached SCSI disk
Feb 21 22:10:59  kernel: [ 3994.310665] sdc: detected capacity change from 18219008 to 0
Feb 21 22:11:01  kernel: [ 3996.863384] sdd: detected capacity change from 2003828736 to 0
Feb 21 22:14:49  kernel: [ 4224.955985] palimpsest[1273]: segfault at 20 ip 00007fa0dffd5d38 sp 00007ffff4096330 error 6 in libglib-2.0.so.0.3000.2[7fa0dffbb000+f3000]
Feb 21 22:14:52  kernel: [ 4227.705012] palimpsest[1275]: segfault at 20 ip 00007fdacbfacd38 sp 00007fffd2216b70 error 6 in libglib-2.0.so.0.3000.2[7fdacbf92000+f3000]
Feb 21 22:14:53  kernel: [ 4228.712239] palimpsest[1277]: segfault at 20 ip 00007f831ca99d38 sp 00007fff264876a0 error 6 in libglib-2.0.so.0.3000.2[7f831ca7f000+f3000]
Feb 21 22:15:11  kernel: [ 4246.633933] usb 1-6: USB disconnect, device number 4

I ejected successfully sdc1 and sdd1, but could not eject sde1, neither using palimpsest nor from the command line, so I turned the device off. Now only the red light is turned on, which according the manual, means that it's being charged. Let's see.

If you have any other ideas, please post it.

By the way, does this topic help in anything: http://stackoverflow.com/questions/4702 … with-linux

Thanks!

Last edited by ILoveJapaneseGirls (2012-02-22 00:58:07)

Offline

#5 2012-02-22 03:35:52

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,236

Re: How to charge a device via USB?

You've got a problem with palimpsest with libglib which may mean you need to reinstall either palimpsest or glib2.  This could possibly be the problem.  I don't know exactly what controls the ability to plug in USB devices so that they can be charged, but the segfault needs to be looked at closer.  Powertop might also give some useful information.

Last edited by nomorewindows (2012-02-22 03:39:14)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

Board footer

Powered by FluxBB