Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
Changed the detection of wireless network devices. The currently used
proc file is/become IIRC deprecated. I change the detection to check
for /sys/class/net/*/wireless (which was already in the code but commented
out).
I added also some code and spec information for IrDA net devices (net.irda)
and ARPHRD_IEEE80211* (wireless lan control-) devices (net.80211control).
|
|
|
|
Now we also export 'exec' as a valid mount option. This way, for example,
g-v-m can now remount a removable storage device with 'exec' to e.g.
run an autolauncher. Had to put an #error into a Solaris specific code
path, should be easy to fix, sorry Artem.
|
|
Also fixup some .gitignore files and prune the TODO for finished items.
|
|
Also put some brains into addon-hid-ups so it only sets properties if
they are changed. Fix libhal_device_commit_changeset do nothing
if the changeset is empty. Should reduce load when having a USB UPS.
|
|
Added a new static library in partutil/ that serves two purposes
1. Probe for partition tables and the entries in them. This is
done without any new dependencies and is in general efficient.
Right now we understand Master Boot Record (and Extended MBR),
GUID Partitioning Tables and Apple Partition Map. The interface
is generic enough to add support for other disk labels too
should the need arise.
2. Create partition tables, add partition table entries, alter
partition table entries, delete partition table entries. This
is done using libparted to ensure maximal robustness and
correctness.
Beware that libparted is kinda silly in a few ways, it probes all
drives (even when asked to only look at one drive - the audicity!),
and we have to poke at the internals to get/set vital raw
properties. As such, we only officially support libparted 1.7.1 at
this point. If you use anything else but that, you are on your own.
We should start a dialouge with the libparted guys to make them
export official API suitable for our needs.
configure now takes a new --enable-parted and by default (for
the upcoming 0.5.8 release), this is set to "no". As such, the
upcoming 0.5.8 release will not depend on libparted.
Also we now use this infrastructure in probe-volume and probe-storage
to export the following new properties
storage.partitioning_scheme (string)
on storage devices and
volume.partition.scheme (string)
volume.partition.type (string)
volume.partition.label (string)
volume.partition.uuid (string)
volume.partition.flags (strlist)
on volumes. These new properties are also now exported through
libhal-storage.
Also moves some more code over to using LibHalChangeSet for nicer
and much more efficient handling.
|
|
Add CloseTray() method to org.freedesktop.Hal.Device.Storage interface.
Also add Eject() to that interface.
Update HAL spec with definitions of the Storage and Volume interfaces.
|
|
This adds the property alsa.device_pcm_class to alsa devices to show if
the device is e.g. a generic sound device or a modem. The new property
represents the types of snd_pcm_info_t from the alsa lib (generic, modem,
multi, digitizer).
You need a kernel patch from Takashi Iwai which should be in 2.6.19
(see http://lists.freedesktop.org/archives/hal/2006-August/006012.html)
|
|
Added support for attribute 'empty' for type 'strlist' (currently
only for type 'string') within the <match> tag of fdi-files. This
should allow such kind of constructs:
[...]
<remove key="info.callouts.add" type="strlist">blah</remove>
<match key="info.callouts.add" empty="true">
<remove key="info.callouts.add"></remove>
</match>
[...]
|
|
API is compatible, as the key battery.technology is now the sanitised
key, and battery.reporting.technology is the key that is the reported
key for the hardware, similar to what we do with the charge level.
|
|
Rather than throwing org.freedesktop.Hal.Device.CPUFreq.UnknownMethod
and .InvalidMessage, just return NOT_YET_HANDLED and D-Bus will take
care of it. Example
$ dbus-send --system --dest=org.freedesktop.Hal --print-reply \
/org/freedesktop/Hal/devices/computer \
org.freedesktop.Hal.Device.CPUFreq.SetCPUFreqPerformance \
string:322
Error org.freedesktop.DBus.Error.UnknownMethod: Method
"SetCPUFreqPerformance" with signature "s" on interface
"org.freedesktop.Hal.Device.CPUFreq" doesn't exist
$ dbus-send --system --dest=org.freedesktop.Hal --print-reply \
/org/freedesktop/Hal/devices/computer \
org.freedesktop.Hal.Device.CPUFreq.SetCPUFreqPerformanceThisMethodDoesNotExist
Error org.freedesktop.DBus.Error.UnknownMethod: Method
"SetCPUFreqPerformanceThisMethodDoesNotExist" with signature
"" on interface "org.freedesktop.Hal.Device.CPUFreq" doesn't
exist
|
|
The following patches add CPU frequency capabilities to HAL via an addon.
This was already discussed in another thread [1].
Addon-cpufreq supports all kernel governors and also implements a
userspace controlling mechanism. Furthermore, it is supposed to abstract
all the different settings you can make for the different governors. It is
unique because it gives you a fine grained control over dynamic scaling
mechanisms via a DBus interface higher level applications like
gnome-power-manager or kpowersave can make use of.
[1] http://lists.freedesktop.org/archives/hal/2006-July/005545.html
---
Patch adding the cpufreq addon itself.
This version implements the following new things:
- specific DBus errors on failure (exceptions)
- PolicyKit integration
- add DBus method to get a list of all available governors
Signed-off-by: Holger Macht <hmacht@suse.de>
---
Patch adding the privilege descriptor for the hal-power-cpufreq privilege.
Signed-off-by: Holger Macht <hmacht@suse.de>
---
Patch adding the documentation for all CPUFreq methods on the
org.freedesktop.Hal.Device.SystemPowerManagement interface to the
Hal specification.
Signed-off-by: Holger Macht <hmacht@suse.de>
---
|
|
This caused x86-64 to freak out, apparently it works fine on x86.
|
|
|
|
Introduce volume.partition.msdos_part_table_start, .msdos_part_table_size,
and storage.removable.media_size.
|
|
Added missing scsi.type mappings which are e.g. needed to identify
scsi printer/scanner or media changer/raid devices. Added also the
property information about scsi.type to the spec.
Mapping of kernel types is:
TYPE_DISK, TYPE_MOD, TYPE_RBC --> disk
TYPE_TAPE --> tape
TYPE_PROCESSOR --> processor
TYPE_WORM, TYPE_ROM --> cdrom
TYPE_SCANNER --> scanner
TYPE_MEDIUM_CHANGER --> medium_changer
TYPE_COMM --> comm
TYPE_RAID --> raid
|
|
|
|
We used to only creat a fakevolume if a mountable file system was
detected. This is wrong as you can have LUKS, RAID or LVM on the main
block device and we should detect this just like we do on
partitions. This patch fixes that.
Second, assume a piece of media is all zero'ed out. Then, on
insertion, we don't find anything on the main block device and neither
does the kernel so no child block devices are created. Hence, HAL
won't spit out any event when such media is inserted. And that, so
far, is correct as we don't detect any useful volumes. However, it
would be useful in e.g. a disk utility program to know if media is
actually available or not. This patch introduces a new property called
storage.removable.media_available that is TRUE if, and only if, we have
detected media on the storage device. Also expose this new property
in libhal-storage.
|
|
Also converted probe-volume to use this new API.
|
|
It appears that ide-cs in the Linux kernel finally got fixed, see
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=130232
for details. So remove some code to make our handling of block devices
more robust.
Also add a note about it would be nice to add > 1 fakevolume objects
for multisession / partitioned optical discs.
|
|
Added hal user and group as Haluser and Halgroup pkg-config file (hal.pc)
|
|
|
|
|
|
|
|
|
|
Credit goes to Patrick Mochel <mochel@linux.intel.com> for this suggestion.
|
|
Haven't really been good at maintaing the TODO list. Sorry.
|
|
Introduce new property volume.linux.is_device_mapper and check for this
on remove events to avoid looping in hotplug remove.
|
|
Don't mark device-mapper as volume.is_partition. Export new properties
storage.size, volume.partition.start and volume.partition.media_size.
Also define these in the spec.
Actually make the existing functions libhal_volume_is_partition() and
libhal_volume_get_partition_number() work. Also add a couple of new
functions libhal_drive_get_size(), libhal_volume_get_partition_start_offset()
and libhal_volume_get_partition_media_size().
|
|
Add a xen namespace to the spec and make HAL recognize bus devices
exported by Xen. This patch comes from Mark McLoughlin. Fixed
freedesktop.org bug #7521.
|
|
Fixed compiler warnings because of missing include of string.h and
added doc/api/tmpl/.gitignore.
|
|
|
|
> > Assuming that a device is not listed in the HAL fdi
> > entry as having a limited depth, most software would probably use
> > Artist/Album/Track when appropriate. If you think this is not
> > sufficient to support the W800i, let's certainly keep discussing it.
>
> That would indeed seem to work fine for the W800i, it just seems open
> to more problems than the previous method of allowing an exact
> specification. While I agree that software would probably use
> Artist/Album/Track it might use Artist - Album/Track which doesn't
> work.
The real problem here is that your device requires a minimum (exact,
actually) folder depth, right? I think the best solution is to make
the folder_depth field not be a max limit, but to be the exact depth
required by a device.
I've attached a patch that just clarifies the role of the
portable_audio_device.folder_depth key. I think this is a pretty
simple way to solve this problem, and won't be too hard for app
developers to implement.
|
|
This makes git status have a clean output.
|
|
in C, .hal-mtab usage, light_sensor and keyboard_backlight additions
including example.
Remove ChangeLog and add rules to Makefile.am (from cairo) to generate
the ChangeLog file from git history.
Add support for light_sensor and keyboard_backlight on my Macbook
Pro. Add an examply python script to examples/ to show how it's done.
Move Unmount, Eject and related stuff to C. Start using the file
/media/.hal-mtab instead of .created-by-hal to specify if HAL created
the mount point. Also list tons of metadata such as uid, session id
(still unused). Fixes the bug where the unprivileged hald couldn't
look into /media/foobar/ for the .created-by-hal file. So now doing
'umount /dev/sda1' on a volume mounted by HAL, makes hald remove the
mount point as one would expect.
|
|
|
|
|
|
submitted html to fix invalid chars
|
|
|
|
closed fd.o bug #6986:
replaced check for xmlto with old check for docbook2html and additional
check for xmllint
added xmllint to resolve xinclude for docbook, readded docbook2html command
|
|
|
|
the addon daemon code. The example here is setting the LCD backlight on
a Macbook Pro. Actual code for setting the backlight is based on code
from Nicolas Boichat found on the mactel-linux mailing list.
New file.
Bugfix so the right backend script is invoked.
Add prototype for libhal_device_claim_interface().
New function.
Add rules for hald-addon-macbookpro-backlight.
Only allow helpers, e.g. only messages from direct connections.
(device_claim_interface): New function to handle the ClaimInterface()
method (do_introspect): Include introspection XML for ClaimInterface()
and the introspection XML returned by ClaimInterface() invocations.
(reply_from_fwd_message): New function
(hald_dbus_filter_handle_methods): Handle ClaimInterface() and forward
messages to the claimed interfaces on the appropriate objects.
(local_server_message_handler): Forward signals from helpers onto the
system message bus and DTRT when a helper disconnects.
New function. One can now do a <spawn udi="foo"> to spawn a child device.
See the fdi file below for usage. (start,
spawned_device_callouts_add_done, end): Handle spawning device objects
in response to <spawn>.
Add rules for matching the Macbook Pro in order to spawn a new device
object with an addon for handing methods on the org.fd.H.D.LaptopPanel
interface.
Allow some interfaces to also emit signals.
Check for libpci so we can use it as an optional dependency.
|
|
much prettier and smart. The old tables make my eyes bleed.
Regenerate this file.
|
|
Disable building docbook by default as it currently breaks 'make
distcheck'.
Also dist other XML files
|
|
<danny.kukawka@web.de> to only install the backend we're building for.
|
|
bus connection called HAL_METHOD_INVOKED_BY_SYSTEMBUS_CONNECTION_NAME
Move these to privileges instead
Moved from policy/txt/*
Fix up subdirs
Adjust for new dirs and remove comment about libhal-policy. Require
PolicyKit >= 0.2 (which is polkit CVS). Don't read weird options from
the polkit pc file.
Update to new PolicyKit API and DTRT so things work using hald/run-hald.sh
|
|
management control.
|