summaryrefslogtreecommitdiff
path: root/extras
AgeCommit message (Collapse)Author
2010-09-03Revert "Add alternative KVM MAC address blacklist"Kay Sievers
This reverts commit 634afac119bbe6bc21719ae3daa45805b1cf3334. 54:52:00 was just a bug in libvirt, and that's better fixed locally, and we should not carry it in udev rules.
2010-09-02Add alternative KVM MAC address blacklistMartin Pitt
Reportedly, older KVM/Qemu instances indeed do use 54:52:00:*, so add this as an alternative.
2010-09-02do not create persistent name rules for VMWare network interfacesMartin Pitt
Not generating persistent MAC address rules will significantly ease cloning of VMs. The kernel reliably sorts eth* enumeration by bus number, so as long as you only have cards from one vendor (or more precisely, drivers), the enumeration will be stable. Having cards from different vendors is very unlikely in VMs. KVM was already covered in the previous commit, this is the equivalent blacklist for VMWare: http://www.coffer.com/mac_find/?string=005056 http://www.coffer.com/mac_find/?string=000c29 https://launchpad.net/bugs/341006
2010-09-02Fix KVM MAC address rangeMartin Pitt
KVM uses 52:54:00:* MACs: http://git.savannah.gnu.org/cgit/qemu.git/tree/net.c#n796
2010-08-31do not create persistent name rules for KVM network interfacesMarco d'Itri
The virtual interfaces created by KVM are stable, 54:52:00 is the MAC-48 range of KVM.
2010-08-31cdrom_id: Fix DVD blank detection for sloppy firmwareJan Drzewiecki
Reportedly, many CD drive firmwares will only consider the MSB in a READ command, thus if we request 17 blocks to be read, we'll actually only get 16 in many cases, and thus miss out the interesting sector #17. This would lead to falsely considering nonempty DVDs as blank. Fetch 32 blocks now, which should work everywhere. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-30cdrom_id: Fix DVD-RW media detectionMartin Pitt
Commit cf2205a19 applied the "restricted overwrite" vs. "sequential" DVD-RW test to feature_profiles() (which reads the drive capabilities), which caused every DVD medium to be detected as ID_CDROM_MEDIA_DVD_RW. Now apply it to cd_profiles() instead, to just check the current profile.
2010-08-27keymap: Fix Acer TravelMate 4720Martin Pitt
The previous change just fixed the Bluetooth key, but Screen Lock and Browser also need to be changed. https://launchpad.net/bugs/569815
2010-08-27gudev: fix crash if netlink is not availableMartin Pitt
gudev_client_new() assumes that priv->monitor is never NULL, but this happens on older kernels. Let's not crash client programs because of that. https://launchpad.net/bugs/581527
2010-08-25keymap: Fix Sony VAIO VGN-SZ2HP/BMartin Pitt
Reportedly this needs the module-sony keymap, not the -old one. https://launchpad.net/bugs/613578
2010-08-23keymap: Add HP G60Martin Pitt
https://launchpad.net/bugs/554944
2010-08-22keymap: Add Onkyo PCMartin Pitt
Thanks to Pau Oliva! https://launchpad.net/bugs/612529
2010-08-18udev-acl: do not mistake all SCSI "processor" devices for scannerMarco d'Itri
Both rules can be removed since now libsane sets libsane_matched also for SCSI scanners. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589751
2010-08-13cdrom_id: Drop MEDIA_SESSION_NEXT for DVD-RW-ROJan Drzewiecki
Commit cf2205a fixed the media status for fresh DVD-RW in restricted overwrite mode, but missed a detail: We should not report the ID_CDROM_MEDIA_SESSION_NEXT property either, since in that mode you can never append tracks/sessions; this just works in sequential mode. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-12Add keymap for Lenovo IdeaPad S10-3David Woodhouse
Tested on S10-3, but presumably applicable to all IdeaPads. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-12cdrom_id: Add media status debuggingMartin Pitt
Show which media status the hardware originally reports, since we mangle it in some cases.
2010-08-11cdrom_id: do not bail out when we can not read the TOC like for empty CDRWKay Sievers
2010-08-11cdrom_id: READ TOC before READ DISC INFORMATION fixes qemuHarald Hoyer
2010-08-11cdrom_id: whitespace fixKay Sievers
2010-08-10cdrom_id: Fix state for fresh DVD-RWJan Drzewiecki
Fresh DVD-RW in restricted overwite mode reports itself as "appendable"; change it to "blank" to make it consistent with what gets reported after blanking, and what userspace expects. For the exotic case where some uses multi-track recording on a DVD-RW in sequential mode, we need to tell apart sequential and restricted overwrite modes, so keep separate states for them internally. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-10rule_generator/write_net_rules: prevent interface to be named "eth"Harald Hoyer
find_next_available() would return "eth" instead of "eth0"
2010-08-10udev-acl: add DDC_DEVICE to the types that are managedRichard Hughes
DDC_DEVICEs are control points for high-end monitors such as the HP DreamColor. The DDC/CI interface allows userspace applications to upload custom colorspaces and interact with the display without using the monitor hardware controls.
2010-08-08cdrom_id: No "next session" for "other" media stateJan Drzewiecki
"other" is known to apply to DVD-RAMs, where sessions can't be appended. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-08cdrom_id: Also apply format check to DVD-RWJan Drzewiecki
Extend the DVD+RW/DVD-RAM check in commit 1ef6c9e to also cover DVD-RW, since in "restricted overwrite" mode they behave similar to DVD+RW. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-08cdrom_id: Handle pre-MMC2 drivesJan Drzewiecki
Those do not yet support the 0x46 "GET CONFIGURATION" support. If we have those, fall back to the 0x51 "READ DISC INFORMATION" call. This can only differentiate between CD-RW and CD-R, but first that's better than a complete detection failure, and second, those old drives likely don't support more modern media in the first place. https://launchpad.net/bugs/502143 Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-08cdrom_id: Fix detection of reblanked DVD+RW and DVD-RAMJan Drzewiecki
Once formatted, DVD+RW and DVD-RAM discs are always reported "complete" by the drive. Check the if the Volume Descriptor or Volume Descriptor Anchor sectors are empty, and if so, set the status to blank. If the disc is unformatted the blank status is maintained and no reads are issued. If the disc is formatted and read command fails, the status remains set to complete to avoid accidental blanking. Bug-Ubuntu: https://launchpad.net/bugs/581925 Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-05udev-acl: remove specific device matches from the rules fileKay Sievers
We should do only do classes of devices, not individual pieces of hardware. There is no way for us to manage this in the long term, and it needs to be thought through what we want here, but it surely isn't a list of smartphones in the udev source tarball installed on all systems.
2010-08-04udev-acl: really fix ACL assignment in CK eventsMichal Schmidt
The previous fix for udev-acl was incomplete. The ACL were not properly assigned to the new user when switching from root's session because of the test for 'uid != 0'. Centralize the special handling of root to a single place (in set_facl). https://bugzilla.redhat.com/show_bug.cgi?id=608712
2010-08-03udev-acl: properly handle CK change events for root userKay Sievers
mschmidt@redhat.com writes: > since root is treated specially, it does not do anything! > udev-acl may want to prevent removing ACLs from root, but > it must not stop the ACLs being granted to the user of the > new session. https://bugzilla.redhat.com/show_bug.cgi?id=608712
2010-08-01keymap: Add force-release quirks for a lot more Samsung modelsFortunato Ventre
https://launchpad.net/bugs/554066
2010-08-01keymap: Generalize Samsung keymapsMartin Pitt
Fortunato Ventre (voRia) <vorione@gmail.com> reports a lot more Samsung models which need the "samsung-other" keymap. Instead of eternally playing catchup, apply it to all Samsung models for now, and keep the two known special cases. https://launchpad.net/bugs/554066
2010-07-23hid2hci: fix for Logitech diNovo Edge keyboardMarco d'Itri
2010-07-19hid2hci: fix Logitech diNovo, MX5500 and other keyboardsMarco d'Itri
2010-07-16Fix volume keys not releasing on Mivvy G310Jerone Young
keymap: add My Mivvy G310 Fixes volume keys not sending key release on My Mivvy G310 laptop. Signed-off-by: Jerone Young <jerone.young@canonical.com> Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-07-15udev-acl: update firewire matches to recent rule changesKay Sievers
2010-07-07keymap: Add Lenovo ThinkPad SL Series extra buttonsMartin Pitt
Sent by Quentin Denis <quentin.denis@gmail.com> via private mail.
2010-07-07keymap: Find alternate Lenovo moduleMartin Pitt
Newer Lenovos apparently have a lower case "extra buttons" module, cover this as well. Sent by Quentin Denis <quentin.denis@gmail.com> via private mail.
2010-07-05keymap: Add Logitech Cordless Wave ProMartin Pitt
https://launchpad.net/bugs/592371
2010-07-02keymap: Add support for IBM-branded USB devicesMatthew Garrett
These seem to use a different layout to the Lenovo-branded devices Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-06-29Add virtio-blk support to path_idRyan Harper
This patch adds a case handling path_id invoked on a virtio-blk device. Currently path_id walks the parent path to virtio-pci but doesn't know that it's the end of the path and exits without building the path (providing no output resulting in no disk/by-path symlinks to virtio-blk devices). This patch handles the virtio-pci path and updates the path accordingly. /lib/udev/path_id --debug /block/vda udev_device_new_from_syspath: device 0x2300120 has devpath '/devices/virtio-pci/virtio1/block/vda' udev_device_new_from_syspath: device 0x2300380 has devpath '/devices/virtio-pci/virtio1' udev_device_new_from_syspath: device 0x2300670 has devpath '/devices/virtio-pci' ID_PATH=virtio-pci-virtio1 And with the current persistent-storage rules generates: % ls -al /dev/disk/by-path | grep vda lrwxrwxrwx. 1 root root 9 Jun 1 22:09 virtio-pci-virtio1 -> ../../vda Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2010-06-28Fix stuck volume key presses for Toshiba Satellite U300 & U305modelsJerone Young
This patch fixes stuck volume keys for Toshiba Satellite models U300 & U305. Signed-off-by: Jerone Young <jerone.young@canonical.com> Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-06-25switch a few left-over from GPLv2 to GPLv2 or laterKay Sievers
2010-06-25make: pre-process and install systemd service files when neededKay Sievers
2010-06-23mtd_probe: add needed include, modprobe blacklist flag, and change some ↵Kay Sievers
whitespace
2010-06-23mtd_probe: add autodetection for xD cardsMaxim Levitsky
commit 2599cabd36770785a13bf884049d649d385fd80c Author: Maxim Levitsky <maximlevitsky@gmail.com> Date: Fri Jun 18 02:08:48 2010 +0300 Add autodetection for xD/smartmedia cards This can easily be extended for other types of FTL Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
2010-06-21remove a few comments in file headersKay Sievers
2010-06-21extras/keymap: add Samsung N210 to keymap rulesHarald Hoyer
https://bugzilla.redhat.com/show_bug.cgi?id=606302 Thanks to John Floyd!
2010-06-13Revert "add Vala vapi for gudev-1.0"Martin Pitt
Argh, recent vala already ships with a gudev vapi. This reverts commit 6a7b5ec7712ea53fd756b07036e23ac0d751cec4.
2010-06-13add Vala vapi for gudev-1.0Martin Pitt
Add gudev-1.0.vapi. This is based on the output of vapigen --library gudev-1.0 GUdev-1.0.gir with fixes to array/list semantics and include file names.
2010-06-11Fix hid2hci rules harderMartin Pitt
Commit 2b463cb0 changed the rules to match against hiddev* for all devices in an attempt to fix Debian #567237/LP #444420. However, this caused regressions with other devices (e. g. LP #550288) and thus was reverted in commit 8b56ba. Now use hidraw* for the devices where it's confirmed that they only work with that, and hiddev* for the others. https://launchpad.net/bugs/444420