| Summary: | CD/DVD media not detected unless "udisksctl status" is run | ||
|---|---|---|---|
| Product: | TDE | Reporter: | linux |
| Component: | tdelibs | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | RESOLVED NOTOURPROBLEM | ||
| Severity: | normal | CC: | bugwatch, linux |
| Priority: | P5 | ||
| Version: | R14.0.x [Trinity] | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
|
Description
linux
2018-01-02 02:14:00 CST
Looks like a Debian bug.
$ cat /sys/module/block/parameters/events_dfl_poll_msecs
0
Seems that this udev rule in 60-block.rules is never executed:
# enable in-kernel media-presence polling
ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_poll_msecs}=="0", \
ATTR{parameters/events_dfl_poll_msecs}="2000"
Probably because there's no "block" module at least in Debian 4.9 kernel:
$ uname -a
Linux test 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64 GNU/Linux
$ lsmod | grep block
$
$ uname -a
Linux omega 4.9.0-5-686-pae #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) i686 GNU/Linux
$ lsmod | grep block
$
(running sysvinit-core)
Adding this to /etc/rc.local fixes the problem:
echo 2000 >/sys/module/block/parameters/events_dfl_poll_msecs
|