| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Allow plugdev group to access powermanagement interfaces as well as encrypted volume interfaces.
|
|
|
|
|
| |
MFH:
Handle requests for CheckForMedia especially for floppy disk devices.
|
|
|
|
|
|
| |
MFH:
Do not add the block device after probing it as a new volume could be added
to the GDL before its parent block device. This can screw up auto-mounting.
|
|
|
|
|
|
|
| |
MFH:
We were not calling libhal_device_addon_is_ready like a good addon is supposed
to. This meant that auto-mounting HAL volumes in Nautilus would not work
properly.
|
|
|
|
|
| |
Cleaned up Apple releted fdi-files and put similar devices together
to one match.
|
|
|
|
| |
Updated NEWS file for upcomming release.
|
|
|
|
|
|
|
|
|
|
| |
This partially reverts commit 8fe3d44796d6aece0e3ce41d41587a99d206c876
and dependant commit 07cfd3ad1e2fb4527ab46962dfef2244580e7903.
Commit 8fe3d44796d6aece0e3ce41d41587a99d206c876 accidentally had two related
peices of functionality, property_index support for HalDeviceStore and parallel
event processing. This only reverts the parallel event processing part of the
patch.
|
|
|
|
| |
Fix crash on 64-bit platforms.
|
|
|
|
|
|
|
|
|
|
|
| |
This patch try to detect automatically broken batteries which tell that they
charge a primary (Laptop) battery with a chargerate higher than 50 W
(50.000 mW), which is IMO in 100% of the cases wrong for Laptop batteries.
Maybe we can also assume a much lower level as criterion.
To get valid remaining time values this patch set in such cases
battery.remaining_time.calculate_per_time=true and calculate the remaining
time based on time and the chargelevel.
|
|
|
|
|
|
|
|
|
| |
Change of the acl-list path to /var/run/hal from commit
6f55096eaa340632d189002f4778cdb91c6684e9 [1] didn't actually have much
sense, since /var/run/hald is already being created.
Moreover, /var/lib/hal is no longer used, and thus there's no need to
created it.
|
|
|
|
|
|
|
| |
Since the code was changed to guarantee a unique UDI, FreeBSD UDIs are no
longer escaped properly. That is, space characters may cause hal programs
to abort. Fix this by chaning out slash escaping function to be a generic
escaping function.
|
|
|
|
|
|
| |
Adapt code from the Linux addon-storage to catch up with the recent fdi
changes. Now, a device will not be probed for media if its
storage.media_check_enabled property is TRUE.
|
|
|
|
| |
Cleanup TODO: removed already implemented 'depends only on pm-utils'.
|
|
|
|
| |
Cleanup TODO: remove implemented 'Singleton addon' feature.
|
|
|
|
|
|
|
|
|
| |
Fixed several issues in the linux addons:
- include config.h if you use e.g. HAVE_POLKIT
- addon-imac-backlight.c: added missing include of string.h, made
'LibHalContext *halctx' global static to allow usage in functions.
- addon-macbook-backlight.c: made 'LibHalContext *halctx' global
static to allow usage in functions
|
|
|
|
| |
Fixed compiler warning for 64bit related to usage of cast to GQuark.
|
|
|
|
|
|
| |
This reverts commit ea0e26b7d35f2cff567345894d171c99830fa55a.
Patch isn't needed, it was already fixed with adding string.h in
commit b8123a11b9b03e9c8db10039242d57533816c3a0.
|
|\ |
|
| |
| |
| |
| | |
Added 10-imac-backlight.fdi to Makefile.
|
| |
| |
| |
| | |
Updated .gitignore for hald-addon-imac-backlight.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Added iMac (x86 linux) backlight addon.
On my way to control the hardcore radioactive backlight of the newer
iMac 24" aluminum models some older code from the mactel guys appeared
to work (while the brightness level range lacks on the 24" but is good
on the 20" ones, compared to Mac OS).
I glued a patch which exposes the control like the other Macbook and
Macbook Pro addons. People reported that it apparently also worked on
other iMac models which I added to the corresponding fdi.
With the lately upstreamed hid patches to support the new aluminum apple
keyboard (really nice!) one can control the backlight of the display
nicely.
|
| |
| |
| |
| |
| |
| |
| | |
Fixed Policy file for org.freedesktop.hal.dockstation.*:
- renamed from hal-dockstation.policy to org.freedesktop.hal.dockstation.policy
as the other policy files
- added file to Makefile.am
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Added ACL policy for Palm PDA device files to enable active access to PDAs
through PolicyKit.
There's also a small correction to a comment in 20-acl-management.fdi
This is an attempt to push upstream work (by many) from:
https://bugzilla.redhat.com/show_bug.cgi?id=280251
We've numerous reports of this working successfully for users.
It currently matches only PalmOS PDAs; it could more broadly match all
PDA devices, though I have no experience of e.g. Windows Mobile devices.
|
| |
| |
| |
| |
| |
| | |
On architectures where unaligned access is not supported, it might have
to be fixed at runtime which can cause slow downs or make the code abort
(like generating SIGBUS).
|
| |
| |
| |
| | |
Removed unused GList *hotplug_events_blocked.
|
| |
| |
| |
| | |
Updated .gitignore.
|
| |
| |
| |
| |
| | |
Fixed typo from commit d2b2baf9912b36def7856b6bfa5c60fc942bbcba
s/(GHFunc)list_values/(GHFunc)list_keys/ .
|
| |
| |
| |
| |
| | |
We don't want to force a dependancy on GLib >= 2.14 yet, so this commit adds a
compatbility wrapper for g_hash_table_get_keys when building with GLib < 2.14.
|
| |
| |
| |
| | |
We were failing the free the GList returned by g_hash_table_get_keys.
|
| |
| |
| |
| |
| |
| |
| |
| | |
FreeBSD now has support for mounting large msdosfs file systems if the
hidden -o large mount option is used. Therefore, add this to the list of
support vfat options.
Reported by: peter weismann <pit@weispit.eu>
|
| |
| |
| |
| |
| |
| | |
Cleaned up poll_for_media() in addon-storage.c to prevent unneeded
if()/else() calls and call update_proc_title() at the end of the
block and not each time separate.
|
| |
| |
| |
| |
| |
| |
| | |
Cleaned up the code. Removed all separate calls of
hal_device_property_set_string (device, "info.udi", udi) so set the
info.udi property of a device. moved the call to hal_device_set_udi(),
this is now more consistent.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Introduces hald_compute_udi which computes a udi thats unique in both the
tdl and gdl and uses it everywhere relvent. This is necessary when we're
processing events in parallel as otherwise its possible to get a race condition
with two devices added with the same name. As part of this patch,
hal_util_compute_udi grwos a varargs version and no longer makes the computer
udi unique. I've also added a hal_util_make_udi_unique for use in those places
where hal_util_compute_udi was only used to check a udi was unique when
inserting into the gdl.
|
| |
| |
| |
| |
| | |
Greatly speeds up coldplugging, as most of the time is spent in
hal_device_store_match_key_value_string, looking up a device by its sysfs path.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Calculate event dependancy of hotplug events based of their sysfs_path. In
hotplug_event_process_queue if an event is dependant on an event in progress,
it will be held back in in the queue.
The event dependancy calculation is cribbed from udev. It requires the event
sequnce number in order to order the dependancies. We don't get event sequence
numbers during coldplug, so we emulate them using a simple counter.
|
| |
| |
| |
| | |
Modifies HalDevice to use GQuarks for the property keys, should reduce memory usage.
|
| |
| |
| |
| |
| |
| |
| | |
This patch reworks the handling of the output of udevinfo so that the output is
parsed into an intermediatary form (with a hash table of sysfpath to structures
pointing directly into the output as captured). This is converted into
HotplugEvents one at a time when needed by coldplug_get_hotplug_event.
|
| |
| |
| |
| |
| |
| | |
By processing coldplug events as soon as their generated and enqueued we can
save some memory usage now that hotplug events are allocated using g_slice
rather than in a pool.
|
| |
| |
| |
| |
| | |
Using g_slice should be better (and makes for cleaner code) than our current
HotplugEvent pool.
|
| |
| |
| |
| |
| | |
Use g_slice for storing HalProperty. Reduces memory fragmentation during
coldplug.
|
| |
| |
| |
| | |
Documented already existing pnp namespace in the spec.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Added support for Tablet PCs with these features:
* identify Wacom and Finepoint Tablet PC devices and port/irq
* set system.formfactor.subtype to 'tabletpc' this allow the desktop
to handle special tasks for Tablet PCs as e.g. show OnScreen Keyboard
* added setserial helper to setup /dev/ttyS* devices with sepcial
parameter if needed
* added fdi-file to call for special Tablet devices setserial with
needed parameter where the kernel can't setup the device correct
This patch is already included in the SUSE hal package since 08/2005.
|
| |
| |
| |
| |
| | |
Added ufstype= as allowed mount option for UFS (this option is
mandatory to mount UFS filesystems under linux)
|
|/
|
|
|
|
|
|
| |
When the user triggers an undock operation, the kernel signals a 'undock
triggered' event. To that time, the 'docked' sysfs property must not
necessarily be updated already, because the undock may (although unlikely)
fail. So add a callback to refresh the dock status until kernel flags tell
us that the undock operation has completed.
|
|
|
|
|
| |
Added already existing portable_audio_player.storage_device
property to the spec.
|
|
|
|
|
|
|
| |
Fixed possible segfault from fd.o bug #14947 for the case that
the remaining time is over 60 hours and the chargeRate was never
before 0 or the rate was never guessed which means saved_battery_info
wasn't initialised.
|
|
|
|
|
|
|
| |
Re-remove the deprecated keys now that the deprecated-keys FDI file has
been committed.
Requested by: Danny Kukawka
|
|
|
|
|
|
| |
Maked crypto-setup policy description for fixed and removable
storage devices/media more clear as pointed out in fd.o bug #14808
and https://bugs.launchpad.net/hal/+bug/186282.
|