All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Krause <chkr@plauener.de>
To: linux-hotplug@vger.kernel.org
Subject: Re: cd-tray immediately closed after it has been opened
Date: Sun, 03 Aug 2008 17:38:00 +0000	[thread overview]
Message-ID: <4895ECF8.9050101@plauener.de> (raw)
In-Reply-To: <488CCA58.7030409@plauener.de>

Hi Kay,

Kay Sievers wrote:
> Ah, great, thanks for the test. We might just be able to skip optical
> drives if cdrom_id did not find a valid media. Does adding this rule
> (ID_CDROM_MEDIA_TRACK_COUNT) fix the unwanted tray closing?
>
> Thanks,
> Kay
>
> --- a/rules/rules.d/60-persistent-storage.rules
> +++ b/rules/rules.d/60-persistent-storage.rules
> @@ -52,6 +52,8
>
>  # skip unpartitioned removable media devices from drivers which do
> not send "change" events
>  ENV{DEVTYPE}="disk", KERNEL!="sd*|sr*", ATTR{removable}="1",
> GOTO="persistent_storage_end"
> +# skip optical drives without media
> +ENV{DEVTYPE}="disk", KERNEL="sr*",
> ENV{ID_CDROM_MEDIA_TRACK_COUNT}!="?*", GOTO="persistent_storage_end"
>
>   

Sorry for the late answer. I've tried out the patch and it solves the 
problem for me. Thanks!


Best regards,
Christian

  parent reply	other threads:[~2008-08-03 17:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-27 19:19 cd-tray immediately closed after it has been opened Christian Krause
2008-07-27 23:35 ` David Zeuthen
2008-07-28  8:48 ` Christian Krause
2008-07-28 16:23 ` David Zeuthen
2008-07-30 17:27 ` Kay Sievers
2008-07-31  7:31 ` Christian Krause
2008-07-31  7:48 ` Kay Sievers
2008-08-01 19:23 ` David Zeuthen
2008-08-03 17:38 ` Christian Krause [this message]
2008-08-04  6:52 ` Kay Sievers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4895ECF8.9050101@plauener.de \
    --to=chkr@plauener.de \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.