1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 15:21:37 +03:00
Commit Graph

3558 Commits

Author SHA1 Message Date
Robby Workman
901e80dc59 configure.ac: fix broken firmware search path in configure.ac
Correct a silly typo: s/fimware/firmware/
2010-04-21 08:30:43 +02:00
Kay Sievers
451dd74d9a configure.ac: version bump 2010-04-20 09:39:24 +02:00
Kay Sievers
f1c4a0e19f release 152 2010-04-20 07:32:40 +02:00
Kay Sievers
85f22036fc doc: add section about how *not* to rename device nodes
Thanks to Mario 'BitKoenig' Holbe <Mario.Holbe@tu-ilmenau.de>.
2010-04-20 07:29:51 +02:00
Yury G. Kudryashov
4101ce14b3 configure.ac: ddd --with-firmware-path option
In NixOS we need to use non-standard firmware path: we have no /lib.
2010-04-20 07:02:58 +02:00
Yury G. Kudryashov
d5a4ca9dfe hid2hci: include linux/types.h for __u32 2010-04-20 06:57:58 +02:00
Kay Sievers
6252f9e732 delete only device nodes, not symlinks when deleting a devtmpfs node
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550152
2010-04-19 18:57:28 +02:00
Kay Sievers
9355f324e1 add O_NOFOLLOW when creating files in link stack 2010-04-19 18:55:10 +02:00
Kay Sievers
8b56bada9a Revert "Fix switching Logitech bluetooth adapters into hci mode."
This reverts commit 2b463cb050.
2010-04-19 15:10:34 +02:00
Marco d'Itri
db123fe9f0 doc: document the WAIT_FOR timeout 2010-04-19 12:47:02 +02:00
Kamal Mostafa
23c455b887 keymap: Add force-release quirk for Mitac 8050QDA
https://launchpad.net/bugs/374884

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-19 08:56:45 +02:00
Kamal Mostafa
af3f56ff71 keymap: Add force-release quirk for Coolbox QBook 270-02
https://launchpad.net/bugs/420473

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-19 08:54:04 +02:00
Kamal Mostafa
db57bdda04 keymap: Unite laptop models needing common volume-key release quirk
Many laptop models need the same volume-key release quirk. Currently, two
models have identical force-release-maps/ keymap files (dell-studio-1557 and
fujitsu-amilo-si1848) and two more need to be added (Mitac and Coolbox QBook).

This replaces the identical force-release-maps files with one
'common-volume-keys' file to make adding new models easier.

There is no obvious DMI commonality between the models needing the quirk (i.e.
they do not all share the same BIOS), so it will remain necessary to scan for
each model separately in 95-keyboard-force-release.rules.

https://launchpad.net/bugs/565459

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-19 08:48:34 +02:00
Kay Sievers
bc913ce478 cdrom_id: set ID_CDROM_MEDIA=1 only for known media
On Sat, Apr 17, 2010 at 18:26, Mike Brudevold <mike@brudevold.com> wrote:
> My CD-RW drive experiences a problem in that it automatically closes
> after opening if there is media in the drive.  This only happens if
> there was media in the drive when it was last closed (an empty drive
> stays open).
...
> cd_profiles: current profile 0x02
> cd_profiles: profile 0x02 <ignored>
...

Do not pretend to have a media, when we receive a profile like 0x02,
which just means "Removable disk".

Thanks to Mike Brudevold for the initial patch.
2010-04-17 19:31:44 +02:00
Mike Brudevold
7c07740ce7 cdrom_id: add missing profiles to feature_profiles
Signed-off-by: Mike Brudevold <mike@brudevold.com>
2010-04-16 07:39:56 +02:00
Yury G. Kudryashov
b3ad0c3c6f configure.ac - fix typo in --with-pci-ids-path option 2010-04-15 21:35:51 +02:00
Martin Pitt
30e3b1a0d3 cdrom_id: Swap media state and TOC info probing
Blank CDs do not have a TOC, thus will fail cd_media_toc() (at least with the
"Do not ignore errors from scsi_cmd_run()" fix). Thus probe the media state
first, so that we can properly detect blank media.
2010-04-15 21:29:18 +02:00
Martin Pitt
58e178894b cdrom_id: Do not ignore errors from scsi_cmd_run()
scsi_cmd_run() can return positive error messages if we have CHECK_CONDITION
set and get the error code from the SCSI command result. So check the result
for non-zero, not for being negative.

This should fix another cause for "phantom" media in empty CD-ROM drives.

Thanks to Mike Brudevold <mike@brudevold.com> for spotting this!

https://launchpad.net/bugs/562978
2010-04-15 21:29:17 +02:00
Kay Sievers
a60b077a46 cdrom_id: debug - print feature values in hex 2010-04-15 21:22:38 +02:00
Kay Sievers
140647ad1a cdrom_id: debug - print feature values in hex 2010-04-15 21:18:21 +02:00
Kay Sievers
2e9df19818 cdrom_id: print more debug messages 2010-04-15 20:48:04 +02:00
Kay Sievers
0413a47ebf cdrom_id: rework feature/profiles buffer parsing 2010-04-15 20:07:07 +02:00
Kay Sievers
c1b7f60dea update NEWS 2010-04-14 17:00:57 +02:00
Martin Pitt
2b861dc927 cdrom_id: Fix uninitialized buffers
Commit 5c6954f is actually a no-op, since static variables are already zero'ed
by default anyway (but we keep it for clarity). The real difference was that a
build with -O0 wor while a build with -O2 didn't.

Turns out that some ioctls do not actually touch the result buffer in some
cases, so we need to zero the result buffers to avoid interpreting random da as
CD properties.

https://launchpad.net/bugs/559723
https://launchpad.net/bugs/561585
2010-04-13 15:25:48 +02:00
Kay Sievers
a89d342dfb remove "ignore_remove" option 2010-04-13 12:45:38 +02:00
Kay Sievers
06ba47d833 rules: call modprobe on all events but "remove" 2010-04-13 12:20:55 +02:00
Martin Pitt
816e6bf0fb cdrom_id: Fix uninitialized variables
In cases where cdrom_id does not go through the entire code path and one of the
probing functions returns -1 or exits early, the remaining variables were never
initialized. This caused effects like "phantom" audio CDs on empty drives, or
bogus data like ID_CDROM_MEDIA_TRACK_COUNT=22528.

Initialize the variables right away to avoid that.

Bug-Ubuntu: https://launchpad.net/bugs/559723
2010-04-13 10:49:24 +02:00
Kay Sievers
1f084fe581 remove "all_partitions" option
We can not predict the major/minor of non-existing devices:
  $ grep . /sys/class/block/sd*/dev
  /sys/class/block/sda1/dev:259:524288
  /sys/class/block/sda2/dev:259:262144
  /sys/class/block/sda3/dev:259:786432
  /sys/class/block/sda4/dev:259:131072
  /sys/class/block/sda/dev:259:0
  /sys/class/block/sdb/dev:259:655360
  /sys/class/block/sdc/dev:259:393216

If this functionality is still needed for some broken hardware, it needs to be
solved with a tool not part of the udev package. Because such option is unreliable
and unsafe to use.
2010-04-13 08:52:48 +02:00
Kay Sievers
236fae6cf1 udevadm: trigger - switch default action from "add" to "change" 2010-04-12 17:56:32 +02:00
Kay Sievers
3ba7e651ad log info only if we actually delete the node 2010-04-12 17:13:37 +02:00
Kay Sievers
5c4c389bba update NEWS 2010-04-12 17:00:16 +02:00
Kay Sievers
4b06c40935 replace "add|change" with "!remove" 2010-04-12 16:52:41 +02:00
Kay Sievers
86dc9133f8 usb-db: remove double '/' 2010-04-12 16:10:05 +02:00
Kay Sievers
5539f624e1 allow IMPORT{db}="KEY" 2010-04-12 15:58:05 +02:00
Kay Sievers
0ec5b5e142 unify/cleanup event handling 2010-04-12 15:51:16 +02:00
Kay Sievers
421fbc71c7 rules: we do not have static devices which are renamed 2010-04-12 10:50:59 +02:00
Kay Sievers
a971fb4d58 rules: delete outdated packagees rules 2010-04-12 10:45:27 +02:00
Kay Sievers
5c5ebde711 cdrom_id: always set ID_CDROM regardless if we can run cdrom_id 2010-04-12 01:12:23 +02:00
Kay Sievers
d45c8c8b01 cdrom_id: check mount state in retry loop
Based on a patch from Harald Hoyer.
2010-04-07 11:32:22 +02:00
Kay Sievers
cccfffbe04 cdrom_id: retry to open the device, if EBUSY
We might fight about the device with polling processes, or other
users who probe the device. Retry a few times if the other one goes
away in the meantime.

Based on a patch from Harald Hoyer.
2010-04-07 09:24:25 +02:00
Harald Hoyer
36a07a8c34 cdrom_id: remove debugging code 2010-04-07 09:23:46 +02:00
Kay Sievers
1c8dc990dc scsi_id: add rand() in retry loop 2010-04-07 09:22:30 +02:00
Kay Sievers
09a5b335b5 extras: mobile-action-modeswitch - update gitignore 2010-04-07 09:16:47 +02:00
Jerone Young
6de84dee05 Add support for another Dell touchpad toggle key
There is another keycode that some Dell machines that are about to ship,
or shipping are using for touchpad toggle. That code is 0x9E.

Signed-off-by: Jerone Young <jerone.young@canonical.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-07 08:27:08 +02:00
Jerone Young
f8ede05d7a Fix Dell Studio 1558 volume keys not releasing
This patch fixes the Dell Studio 1558 to give a key release when a
volume key is pressed. This is the same as the 1557.

Signed-off-by: Jerone Young <jerone.young@canonical.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-06 20:25:58 +02:00
Jerone Young
5fa8992c9c Revert special casing 0xD8 to latitude XT only
Now that Dell has changed the functionality of upcoming machines with
touchpad toggle to only use keycode 0xD9 .. and not 0xD8 & 0xD9. It
seems best to add this back to the general map of Dell buttons. Just
incase a machine in the future uses this later.

Signed-off-by: Jerone Young <jerone.young@canonical.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-06 09:57:14 +02:00
Jerone Young
e22aa83ba0 Add new Dell touchpad keycode
After working very closely with Dell. They have now completely changed
the way they have implemented there touchpad hotkey for upcoming
machines.

It now only generates a single keycode (0xD9). It nolonger does anything
in hardware, nor does it generate more then this keycode.

This patch properly maps this keycode.

Signed-off-by: Jerone Young <jerone.young@canonical.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-06 09:57:00 +02:00
Jerone Young
233a922112 Fix Keymapping for upcoming Dell Laptops
This patch fixes it so that new upcoming Dell machines will work
correctly if users presses the touchpad toggle key.

Currently 0xD8 is being mapped to sleep. Though this is only done by the
Latitude XT* laptops. Many upcoming Laptops from Dell are mapping this
key to "toogle touchpad off" .. giving the OS notification that it has
just turned off the touchpad.

Though their is an issue in that if this key is mapped the hardware
first toogles .. then the software tries to do the samething after, if
they fall out of sync ... no more touchpad. So leave out mapping these
keys for now.

Signed-off-by: Jerone Young <jerone.young@canonical.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-03-28 14:26:19 +02:00
Kay Sievers
dbba7e4029 libudev: update documentation 2010-03-25 16:45:48 +01:00
Martin Pitt
43d08246db keymap: Fix another key for Acer TravelMate 6593
https://launchpad.net/bugs/536914
2010-03-24 18:56:20 +01:00