[mythtv] Ticket #3077: Default CD Device selection

Andrew Nicholson abhuman at gmail.com
Wed Mar 7 17:48:57 UTC 2007

On Wed, Mar 07, 2007 at 11:11:16AM +0000, Matthew Wire wrote:
> > Even better, for those of us with sysfs:
> > 
> >     QFile file("/sys/block/"+devname+"/device/model");
> > 
> > This should work for any block device.
> Interesting.  None of my systems have that file "model" under sysfs.
> None of the files under sysfs for me return the model name, only info
> like cdrom, hdb etc.
> What distro/kernel are you using which provides "model" under sysfs?
> Mine are all versions of Ubuntu, from Dapper to Feisty.

I'm running Gentoo with a 2.6.19 kernel, but I think the key bit is that
all my drives are running with libata (SATA HDs & PATA DVD-RW).  They
show up like SCSI devices, which appears to be the source of the sysfs
entries.  Maybe supporting both /proc/ide/<dev>/model and
/sys/block/<dev>/device/model is the way to go?


More information about the mythtv-dev mailing list