* USB card reader and HAL
@ 2007-06-28 21:43 DervishD
2007-06-29 5:22 ` Kay Sievers
0 siblings, 1 reply; 3+ messages in thread
From: DervishD @ 2007-06-28 21:43 UTC (permalink / raw)
To: Linux-kernel
Hi all :)
I have a new card reader (internal) but I've tested with my old one
too: the same happens. I have a do-it-yourself linux box, self compiled
kernel 2.6.19.5 (by now).
When I insert a card in the reader, it is not detected, no udev
event is generated and I have to do things like "hdparm -z /dev/sda" to
"probe" the card. Moreover, I have to do the same when removing the card
or the /dev/sdaX nodes are not deleted.
Is HAL the only way of making it work? Is there any CONFIG_ thing
I've forgotten in my kernel?
I've tested with Ubuntu and it works perfectly, and that's why I
think this may be HAL related (I don't have HAL installed, Ubuntu has).
Thanks in advance :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: USB card reader and HAL
2007-06-28 21:43 USB card reader and HAL DervishD
@ 2007-06-29 5:22 ` Kay Sievers
2007-06-29 7:20 ` DervishD
0 siblings, 1 reply; 3+ messages in thread
From: Kay Sievers @ 2007-06-29 5:22 UTC (permalink / raw)
To: Linux-kernel
On 6/28/07, DervishD <lkml@dervishd.net> wrote:
> I have a new card reader (internal) but I've tested with my old one
> too: the same happens. I have a do-it-yourself linux box, self compiled
> kernel 2.6.19.5 (by now).
>
> When I insert a card in the reader, it is not detected, no udev
> event is generated and I have to do things like "hdparm -z /dev/sda" to
> "probe" the card. Moreover, I have to do the same when removing the card
> or the /dev/sdaX nodes are not deleted.
>
> Is HAL the only way of making it work? Is there any CONFIG_ thing
> I've forgotten in my kernel?
>
> I've tested with Ubuntu and it works perfectly, and that's why I
> think this may be HAL related (I don't have HAL installed, Ubuntu has).
You have to open() the device node to trigger events from the kernel,
the kernel itself will not do that for you. HAL polls the device every
few seconds.
Kay
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: USB card reader and HAL
2007-06-29 5:22 ` Kay Sievers
@ 2007-06-29 7:20 ` DervishD
0 siblings, 0 replies; 3+ messages in thread
From: DervishD @ 2007-06-29 7:20 UTC (permalink / raw)
To: Kay Sievers; +Cc: Linux-kernel
Hi Kay :)
* Kay Sievers <kay.sievers@vrfy.org> dixit:
> On 6/28/07, DervishD <lkml@dervishd.net> wrote:
> > When I insert a card in the reader, it is not detected, no udev
> >event is generated and I have to do things like "hdparm -z /dev/sda" to
> >"probe" the card. Moreover, I have to do the same when removing the card
> >or the /dev/sdaX nodes are not deleted.
> >
> > Is HAL the only way of making it work? Is there any CONFIG_ thing
> >I've forgotten in my kernel?
>
> You have to open() the device node to trigger events from the kernel,
> the kernel itself will not do that for you. HAL polls the device every
> few seconds.
So, opening the node and checking for ENOMEDIUM is the only
solution... Polling looks like a waste of time, and given that I use the
reader once a month or so, HAL will be a waste of resources. I'll resort
to manually do "hdparm -z" (or something similar) when I need to insert
or remove a card.
Thanks for confirming, Kay :))
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-06-29 7:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-28 21:43 USB card reader and HAL DervishD
2007-06-29 5:22 ` Kay Sievers
2007-06-29 7:20 ` DervishD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox