hal

When do hal properties get updated

I'm calling GetProperty on a org.freedesktop.Hal.Device from my handler during a PropertyNotified signal. I'm only calling GetProperty on properties that have been added or changed. When I call GetProperty during property adds, I'm getting a org.freedesktop.Hal.NoSuchProperty exception. I'm also worried that during changes, I'm gettin...

Creating a network driver

I'm pretty much a total idiot when it comes to writing hardware drivers, however I'm fairly decent at C/C++. I have a for fun project I want to work on that is attempting to use a device as a network tether proxy. What I would like to do is create a driver that appears to be a network driver to windows, but actually sends/receives thro...

How to mark a device in a way that can be retrived by HAL but does not require mounting or changing the label.

I'm trying to find a way to mark a USB flash device in a way that I can programmaticly test for without mounting it or changing the label. Are there any properties I can modify about a device that will not cause it to behave/look differently to the user? Running Ubuntu Jaunty. ...

Unit testing for D-Bus and HAL?

How does one test a method that does some interactions with the local D-Bus (accessing a HAL object)? Results of tests will differ depending on the system that the test is run on, so I don't know how to provide the method reliable input. I'm working in Python, by the way. ...

Find a HAL object based on /dev node path

Hi, I'm using python-dbus to interface with HAL, and I need to find a device's UDI based on it's path in the /dev hierarchy. So given a path such as /dev/sdb, I want to get a value back like /org/freedesktop/Hal/devices/usb_device_10. ...

Disable GNOME's automount with Python

Hi, I need to stop GNOME/Nautilus from automagically mounting new devices and partitions as they appear to the system. How can I accomplish this in python? ...

enable/disable device driver using HAL and DBus

I want to write a python code using HAL to get for a certain "udi" the info. about the device driver, and to enable/disable this device driver. ...

HAL - how to monitor audio output on a mac

There is an application called wiretap available at http://www.ambrosiasw.com/utilities/wiretap/ This application can record the system audio. I would like to be able to do the same in my program. Any insights on what I need to do this? I am familiar with Core Audio but havent found anything on how to do this. would this help getti...

Handling HAL implementation: storage.cdrom.write_speeds

device.get('storage.cdrom.write_speeds') This returns HAL list of ints, like: [4284, 2342, 1202, 800] How should these be handled, to recieve writing speed? Or better, how does one retrieve speeds for all media type burner can write: DVDs, CDs... According to wikipedia, calculation should be: value/150 for normal CDs, value/172.3 f...

auto permissions on udev'd device files?

This is a dupe from SuperUser.com . Folks over there weren't smart enough or willing to help me out; maybe it's more a programmer question than an administrator one: I have an app that reads input from 4 (four) mice that are plugged in via USB in addition to the built-in touchpad. This is no problem for Ubuntu 9.10: hald notices the n...

DirectX HAL specification

Where can one find the DirectX HAL specification? Taking this diagram to be correct Then all GPU vendors have to write their device drivers such that they speak to the HAL. Where is the HAL specified? How does MSFT adjust or update the HAL? When does the HAL change? If the HAL changes does the world break or the sky fall? ...

What does a linux device need to be seen by Hal?

I'm trying to learn about device drivers on Linux Kernel, for that I've created three modules with: A bus type A device driver A fake device that does nothing now, only is registered Everything works fine, I can load the bus, the driver and the module that creates the device. Everything appears on sysfs, including the link between th...