summaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)AuthorFilesLines
2006-09-11update NEWS and TODO for 0.5.8 releaseHAL_0_5_8David Zeuthen1-24/+23
2006-09-11Merge branch 'master' of ssh://david@git.freedesktop.org/git/halDavid Zeuthen1-0/+30
2006-09-11fixup libparted detectionDavid Zeuthen4-0/+116
2006-09-12change detection of wireless, add net.irda and net.80211controlDanny Kukawka1-0/+30
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).
2006-09-11fix some compiler warningsDavid Zeuthen3-40/+40
2006-09-11make Mount() support option remountDavid Zeuthen1-2/+0
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.
2006-09-10require addons to call libhal_device_addon_is_ready() to make device visibleDavid Zeuthen4-6/+6
Also fixup some .gitignore files and prune the TODO for finished items.
2006-09-10make addon-hip-ups use LibHalChangeSetDavid Zeuthen4-68/+64
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.
2006-09-10add new partition probing code and adapt hal code to use itDavid Zeuthen4-451/+1461
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.
2006-09-02CloseTray() method (eject -t)Artem Kachitchkine1-0/+73
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.
2006-08-31add property alsa.device_pcm_classiDanny Kukawka1-0/+60
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)
2006-08-31add support for attribute 'empty' for strlist to <match> tagDanny Kukawka1-2/+2
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> [...]
2006-08-24modify battery.technology to one of a few present valuesRichard Hughes1-2/+18
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.
2006-08-23make cpufreq addon use standard D-Bus expections for unknown methodsDavid Zeuthen1-23/+0
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
2006-08-23add cpu frequency scaling support to halHolger Macht4-26/+252
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> ---
2006-08-23fix uninitialized pc->merge_typeDavid Zeuthen3-0/+152
This caused x86-64 to freak out, apparently it works fine on x86.
2006-08-19Merge branch 'master' of ssh://david@git.freedesktop.org/git/halDavid Zeuthen11-16/+79
2006-08-19introduce some new properties for MS-DOS partition tablesDavid Zeuthen2-47/+183
Introduce volume.partition.msdos_part_table_start, .msdos_part_table_size, and storage.removable.media_size.
2006-08-16add more scsi.type mapping and add property info to specDanny Kukawka1-0/+68
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
2006-08-15ISO-8859-1 -> UTF-8Kay Sievers11-16/+11
2006-08-12fix up how we handle non-partitioned volumesDavid Zeuthen1-0/+8
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.
2006-08-07add API to hald (and libhal) to change multiple properties at onceDavid Zeuthen4-1/+59
Also converted probe-volume to use this new API.
2006-08-06fix removal of fakevolume objects and remove special handling for ide-csDavid Zeuthen1-0/+4
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.
2006-08-04Export hal user and group in pkg-config fileDanny Kukawka1-2/+0
Added hal user and group as Haluser and Halgroup pkg-config file (hal.pc)
2006-08-04add some more notes to doc/TODODavid Zeuthen1-0/+4
2006-08-03add note to doc/TODO about the o.fd.Hal.Device.VideoAdapterPM propertiesDavid Zeuthen1-0/+3
2006-08-03add note to doc/TODO about making Mount support option 'remount'David Zeuthen1-0/+1
2006-08-03make a note of runtime power management in the TODO listDavid Zeuthen1-0/+7
2006-08-03add notes about new power saving mechanisms we should addDavid Zeuthen1-0/+17
Credit goes to Patrick Mochel <mochel@linux.intel.com> for this suggestion.
2006-08-03update TODO list so it fits in with realityDavid Zeuthen3-63/+96
Haven't really been good at maintaing the TODO list. Sorry.
2006-08-03fix device mapper block device handling as last commit broke thisDavid Zeuthen1-0/+10
Introduce new property volume.linux.is_device_mapper and check for this on remove events to avoid looping in hotplug remove.
2006-08-02add properties required by a hypothetical disk utility and some bug fixesDavid Zeuthen4-338/+823
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().
2006-08-02add support for Xen devicesMark McLoughlin2-0/+50
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.
2006-08-02fixed compiler warnings and added doc/api/tmpl/.gitignoreDanny Kukawka1-0/+3
Fixed compiler warnings because of missing include of string.h and added doc/api/tmpl/.gitignore.
2006-07-29add *~ to all .gitignore files for emacs usersDavid Zeuthen4-0/+4
2006-07-29Clarify what portable_audio_player.folder_depth means.Gabriel Burt1-5/+5
> > 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.
2006-07-28Add some more temp files to the .gitignore files.Richard1-0/+1
This makes git status have a clean output.
2006-07-27(forgot to pass -a the first time) git stuff, mount/umount/eject allDavid Zeuthen17-799/+1353
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.
2006-07-27add .o files to .gitignoreKay Sievers4-0/+4
2006-07-27.cvsignore -> .gitignoreKay Sievers4-0/+0
2006-07-27fixed building of hal-spec.htmlDanny Kukawka2-2114/+11717
submitted html to fix invalid chars
2006-07-26*** empty log message ***Danny Kukawka1-0/+8
2006-07-24Fixed build hal-spec.html to avoid invalid chars in the html page andDanny Kukawka1-1/+2
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
2006-07-11remove dead files after dead code removalKay Sievers2-1144/+0
2006-06-09Adds code so addons can claim interfaces and handle the methods on them inDavid Zeuthen11-231/+174
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.
2006-06-06This adds a css style file to the generated html file. It makes the tablesRichard Hughes4-10/+36
much prettier and smart. The old tables make my eyes bleed. Regenerate this file.
2006-06-06Be explicit about DIST_SUBDIRS as otherwise 'make distcheck' breaks.David Zeuthen3-18/+21
Disable building docbook by default as it currently breaks 'make distcheck'. Also dist other XML files
2006-06-06Patch from Joe Marcus Clarke <marcus@freebsd.org> and Danny KukawkaDavid Zeuthen1-8/+8
<danny.kukawka@web.de> to only install the backend we're building for.
2006-06-05Export a new environment variable with the unique name for callers systemDavid Zeuthen1-8/+8
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
2006-05-31Add the video_adapter_pm namespace key descriptions for video powerRichard Hughes2-9/+172
management control.