Re: HAL depreciated, but what replaced it?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, looks like gudev is a dead end too.

Problems:

1. No property which give media type. Instead it looks like there are
boolean value given instead, i.e.:

ID_CDROM_MEDIA_DVD_PLUS_R: 1

So I assume if I was using a DVD-R it would be:

ID_CDROM_MEDIA_DVD_MINUS_R: 1

THIS IS CRAZY

This means I would have to keep my own database of media types and
check to see if any of the ID_CDROM_MEDIA...'s matched what's in my
database.

At least UDisks gave me a media type as a string.

2. Still no size/capacity property.

So HAL is dead as of F16 but not fully replaced.

I'll post all the properties at the bottom if anyone wants to wade through them.

Thanks,
Richard

---
device file symlinks: /dev/scd0,
/dev/disk/by-id/ata-ASUS_DRW-24B1ST_a_B2D0CL372638,
/dev/disk/by-path/pci-0000:00:11.0-scsi-3:0:0:0, /dev/cdrom,
/dev/cdrw, /dev/dvd, /dev/dvdrw
device keys: UDEV_LOG, DEVPATH, MAJOR, MINOR, DEVNAME, DEVTYPE,
SUBSYSTEM, ID_CDROM, ID_CDROM_CD, ID_CDROM_CD_R, ID_CDROM_CD_RW,
ID_CDROM_DVD, ID_CDROM_DVD_R, ID_CDROM_DVD_RW, ID_CDROM_DVD_RAM,
ID_CDROM_DVD_PLUS_R, ID_CDROM_DVD_PLUS_RW, ID_CDROM_DVD_PLUS_R_DL,
ID_CDROM_MEDIA, ID_CDROM_MEDIA_DVD_PLUS_R, ID_CDROM_MEDIA_STATE,
ID_CDROM_MEDIA_SESSION_NEXT, ID_CDROM_MEDIA_SESSION_COUNT,
ID_CDROM_MEDIA_TRACK_COUNT, ID_ATA, ID_TYPE, ID_BUS, ID_MODEL,
ID_MODEL_ENC, ID_REVISION, ID_SERIAL, ID_SERIAL_SHORT, ID_ATA_SATA,
ID_ATA_SATA_SIGNAL_RATE_GEN1, ID_PATH, GENERATED,
UDISKS_PRESENTATION_NOPOLICY, DEVLINKS, TAGS
   device property UDEV_LOG: 3
   device property DEVPATH:
/devices/pci0000:00/0000:00:11.0/host3/target3:0:0/3:0:0:0/block/sr0
   device property MAJOR: 11
   device property MINOR: 0
   device property DEVNAME: /dev/sr0
   device property DEVTYPE: disk
   device property SUBSYSTEM: block
   device property ID_CDROM: 1
   device property ID_CDROM_CD: 1
   device property ID_CDROM_CD_R: 1
   device property ID_CDROM_CD_RW: 1
   device property ID_CDROM_DVD: 1
   device property ID_CDROM_DVD_R: 1
   device property ID_CDROM_DVD_RW: 1
   device property ID_CDROM_DVD_RAM: 1
   device property ID_CDROM_DVD_PLUS_R: 1
   device property ID_CDROM_DVD_PLUS_RW: 1
   device property ID_CDROM_DVD_PLUS_R_DL: 1
   device property ID_CDROM_MEDIA: 1
   device property ID_CDROM_MEDIA_DVD_PLUS_R: 1
   device property ID_CDROM_MEDIA_STATE: blank
   device property ID_CDROM_MEDIA_SESSION_NEXT: 1
   device property ID_CDROM_MEDIA_SESSION_COUNT: 1
   device property ID_CDROM_MEDIA_TRACK_COUNT: 1
   device property ID_ATA: 1
   device property ID_TYPE: cd
   device property ID_BUS: ata
   device property ID_MODEL: ASUS_DRW-24B1ST_a
   device property ID_MODEL_ENC:
ASUS\x20\x20\x20\x20DRW-24B1ST\x20\x20\x20a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
   device property ID_REVISION: 1.04
   device property ID_SERIAL: ASUS_DRW-24B1ST_a_B2D0CL372638
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux