Xorg 1.8 - How does udev replace HAL?

Okay guys, I've understood that you can run custom commands to e.g. automount USB sticks or symlink devices with udev. That's pretty easy, and actually a lot less work than with the XML-style .fdi files of HAL. Good riddance I guess.
But HAL played an important role in enabling zero-configuration input devices so far. This seems no longer be working at all. With simple commands, HAL was able to dynamically add devices to X. I'm desperately trying to figure out a way to do the same with udev though, and I really can't find anything on it...
I just want to enable my Wacom tablet *without* the use of an Xorg.conf (which AFAIK is deprecated), like it was possible with HAL. I know how to match my device, but not what I need to do with udev to add those input devices to the X session. Could anyone please fill me in?

lustikus wrote:usb automounting can be done with udev rules:  http://wiki.archlinux.org/index.php/Ude … SB_devices
I know, that's not the point. My problem is specifically with *input* devices.
@archman-cro: You understood it wrong. The files that are already in /etc/X11/xorg.conf.d/ will get overwirrten with every update. These are files that typicall get managed by different packages. Basically, if you add a synaptics touchpad driver, that package will but its 10-synaptics.conf in there. If you use a wacom tablet (xf-86-input-wacom package), a 50-wacom.conf will get put there. These files should NOT be modified because if the package gets updated or reinstalled, the old one will be removed.
What you could do is maybe create a file that no package will ever overwrite in there, like /etc/X11/xorg.conf.d/10-local-rules.conf. Then put any local rules in there and hope no package ever wants to use 10-local-rules.conf. This also has the advantage that these rules are parsed before most of the other rules, as all etc/X11/xorg.conf.d/*.conf files are parsed in alphabetical order.
I've got a question on the InputClass section. You can use MatchProduct and Matchvendor there. But how do you find out for a given device what the value of the Product and Vendor strings are? I know you can do this for USB devices with the lsusb command, but how about serial devices?
Last edited by Natanji (2010-06-25 10:21:34)

Similar Messages

  • How does one replace a lost Time Capsule power cord? thanks

    how does one replace a lost Time Capsule power cord? thanks

    It is a standard figure8 power cable.. any electronic retailer will stock them.
    You will find it hard to get white.. they are all black.. you can ask at apple store or repairer.. I don't think it is sold as an accessory.. but a repair shop might have a few.

  • How does udev decide to load oss or alsa when boot up?

    Since Skottish has told me I do not need to blacklist alsa in MODULES in order to use oss.
    I assume that udev will choose oss rather than alsa to load when booting up, then I am wondering how does udev choose which one to load, alsa or oss?
    And suppose one day, I want to use alsa again, how can I make udev to choose alsa instead of oss?
    Also by the way, will there be any conflict to load both alsa and oss together?
    Thanks, guys.:)

    Ok, so udev actually look at what is DAEMON to decide what to load?
    I didn't know this.. I thought when boot up, udev will load alsa by default, then why did the OSS Wiki said we need to put !soundcore in MODULES to blacklist Alsa?
    Last edited by yingwuzhao (2009-03-15 22:58:59)

  • How does one replace carriage returns (enter key) in text areas

    I have an address text area in one of my pages where end users are hitting enter after each part of the address. I want to replace the carriage return hex('0A') with spaces. How can I do that?

    If you're manually saving your data, you can just change your insert/update code as below:
    insert into myTable
    (myCol)
    values
    (replace(:PXX_MY_TEXT_AREA, Chr(10), ' '))
    where ...If you're building a page where you aren't directly saving your data, you can add an "on Submit/Before Computation" process that does something like:
    :PXX_MY_TEXT_AREA := replace(:PXX_MY_TEXT_AREA, Chr(10), ' ');

  • My iPod touch cracked. How does the replacement work?

    I dropped my iPod touch, and the screen is cracked. The iPod still works though. What I'm wondering is if I pay the money to fix it, do they just replace the screen, or do they replace the whole iPod?

    Apple will give you a replacement. Here are the prices.
    Apple - Support - iPod - Repair pricing
    Third-party places may be less expensive:
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    DigiExpress.us - The iPad Repair Professionals
    iPod Touch Glass Replacement
    3rd Gen iPod touch Repair

  • How does apple replace a 4gb iphone?

    I need to have my malfunctioning 4GB iphone replaced. Do they replace it with a 4GB or an 8GB? I thought they stopped making the 4GB.

    There should be plenty of 4GB phones for warranty issues. If the Apple Store Genius Bar near you doesn't have one in stock, they will order it in for you. They should also be able to make a loaner phone available to you as well. Are you having an issue with your phone?

  • Mvc4How does on replace ValidateAntiForgeryTokenAttribute.Salt Property with AntiForgeryConfig.AdditionalDataProvider ??? ‎

    I updated to mvc 4 and got this error that :
    ValidateAntiForgeryTokenAttribute.Salt Property (System
    [ObsoleteAttribute("The 'Salt' property is
    deprecated. To specify custom data to be embedded within the token, use the
    static AntiForgeryConfig.AdditionalDataProvider ...
    How does this replace ValidateAntiForgeryTokenWrapperAttribute :
    FilterAttribute, IAuthorizationFilter which is used an attribute on a class and
    is used for validation from an ajax posting involving
    __RequestVerificationToken: getAntiForgeryToken????
    Do I just get of all the classes that have the
    [ValidateAntiForgeryTokenWrapper] attribute applied to them and some derived class from IAntiForgeryAdditionalDataProvider interface.
    I have not found one example are solution that said what to do or how to
    change the classes that [ValidateAntiForgeryTokenWrapper]  applied to them, and
    replace them whith this  AntiForgeryConfig.AdditionalDataProvider. Any advice
    Below is the ValidateAntiForgeryTokenWrapperAttribute  class used. It is applied as an attribute to a class. The error is thrown where Salt = salt line of code. So how exactly do I replace that line of code by AntiForgeryConfig.AdditionalDataProvider?
    Please do not give me links to explanation or link to where someone tried some other way which does use AntiForgeryConfig.AdditionalDataProvider which usually causes another half million errors. I am looking just how to replace the Salt and suggested. Source
    code to and a project is what I am looking for to show how this works
        [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method,
    AllowMultiple = false, Inherited = true)]
        public class
    ValidateAntiForgeryTokenWrapperAttribute : FilterAttribute,
    IAuthorizationFilter
            private readonly
    ValidateAntiForgeryTokenAttribute _validator;
            private readonly AcceptVerbsAttribute _verbs;
            public ValidateAntiForgeryTokenWrapperAttribute(HttpVerbs verbs) :
    this(verbs, null)
            public ValidateAntiForgeryTokenWrapperAttribute(HttpVerbs verbs,
    string salt)
                this._verbs = new
    AcceptVerbsAttribute(verbs);
    AntiForgeryConfig.AdditionalDataProvider = salt;
                this._validator
    = new ValidateAntiForgeryTokenAttribute()
                        Salt = salt
    AntiForgeryConfig.AdditionalDataProvider = salt

    I tried to start a thread in that forum,  But every time I click on the sign button in internetexplorer the nothing happens. I used Chromed and when I clicked on the sign in sheet I was able to sign in, But when I clicked on the start a new thread
    in the mvc forum I was redirected to the sign in sheet again. That Microsoft for sucking the big one as usual
    steven frierdich

  • How much does a replacement for a broken ipod touch 32gb 4g cost

    how much does a replacement for a broken ipod touch 32gb 4g cost

    Apple will exchange it for a refurbished one for $149 if the iPod is not in pieces/severly phyically damaged.
    Apple - Support - iPod - Repair pricing

  • How does replace work?

    I have an encoded string that I want to decode:
                // input:   %3cFSParm%3e%3cHouseholdSize%3e03%3c%2fHouseholdSize%3e
                var locDecodeParm:String = decodeURI(locationParm);
                //  output:<FSParm><HouseholdSize>03<%2fHouseholdSize>
    The problem is "%2f" won't decode to "/".  So I tried:
                var pattern:RegExp = /<%2f/gi;
                locDecodeParm.replace(pattern,"</");
    And variations on that (locDecodeParm.replace("%2f","/" for example) that also don't work. Nor did "//" or "\/".
    Why can't I get this to work?

    I guess I just don't understand what the problem is...
    The code snippet you showed is using swfobject for Flash detection, It does not replace anything in the code, you will see both the <object> and the <script>. So seeing both seems correct.
    How swfobject works is that if it detect the Flash plugin in the Web browser, then it displays the <script> part in the browser. If no Flash plugin, then the <object> will display in the browser window. But both the <object> and the <script> are always part of the code. Nothing is very deleted or replaced.
    That is one of the strengths of swfobject. It allows the site owner to create "Alternate Content", which is what the <object> is. That could just as well be replaced with HTML text describing the Flash content. The use of HTML text for "Alt Content" is most often used for SEO purposes.
    However if <object> is used to place a Flash .swf on the Web page, then the use of swfobject is redundent. Either the Web browser has the Flash plugin and will play the Flash .swf or it doesn't have the Flash plugin. So it is not correct to use <object> to display the Flash as "alternate content", since that is what <script> is for. Replace the <object> with some other type of HTML content, an image and a message saying "Flash needed to display this element"... or something like that.
    Best wishes,
    Adninjastrator

  • How does one show full message headers in Mail 8.1? The previous 'complete header' option has been replaced with a time consuming 'custom' choice.

    How does one show full message headers in Mail 8.1?
    he previous 'complete header' option has been replaced with a time consuming 'custom' choice.

    Customize your toolbar in Mail and add the All Headers button:

  • How can I merge folder with the same name so that the content does not replace the other

    How can I merge folder with the same name so that the content does not replace the other?

    >
    That's only a good idea if the semantics of sayHello
    as defined in MyInterface suggest that a
    RemoteException could occur. If not, then you're
    designing the interface to suit the way the
    implementing classes will be written, which smells.
    :-)But in practice you can't make a call which can be handled either remotely or locally without, at some point, dealing with the RemoteException.
    Therefore either RemoteException must be part of the interface or (an this is probably more satisfactory) you don't use the remote interface directly, but MyInterface is implemented by a wrapper class which deals with the exception.

  • How long does screen replacement take in Apple Retail store? UK

    Hi,
    How long does screen replacement take while performed in Apple Retail store after making an appointment with "Genius"? My Iphone 6 screen recently cracked. I know it's a paid repair.
    Is it done with hours or do i have to wait for several days?

    Thanks for answer, anyone else had the "pleasure" of doing screen replacement in store? I'm looking to replace it in London.

  • How much does it cost to replace a Macbook Air keyboard? And what components does the replacement include?

    How much does it cost to replace a Macbook Air keyboard? And what components does the replacement include?

    I had two fans replaced in 2012 on my 2006 MacBook Pro were around £10 each with labor at £20. I don't know that these prices are still viable, but it may give you an estimate.
    Good luck,
    Clinton
    MacBook Pro (15-inch Late 2011), OS Mavericks 10.9.4, 16GB Crucial RAM, Crucial M500 960GB SSD, 27” Apple Thunderbolt Display

  • Out of warranty replacement... how does it work ?

    I have another post regarding my broken IPhone 3GS (I figured this is a new question so required a new thread).
    I need to get an 'out of warranty' replacement but have a few questions:
    When doing a replacement is the 'replacement' a referb ?
    Is it possible to pay extra and get another version of the IPhone 4/4s/5 ? Or is it a 'like for like' swap ?
    Thanks in advance

    kegan5 wrote:
    IWhen doing a replacement is the 'replacement' a referb ?
    Yes.
    Is it possible to pay extra and get another version of the IPhone 4/4s/5 ? Or is it a 'like for like' swap ?
    Not as a replacement for an out of warranty replacement.

  • How do you get hal working?

    What is the proper way to get hal working ?
    Do I need to start gnome-volume-manger ?
    How do you get hal started seems that adding it to rc.conf [DAEMONS] does not work
    Its odd never had many problems mounting until recently
    Or is it just again lol
    MrG

    Mr Green wrote:But I would rather get it working in DEAMONS do you use @ in front of hal & dbus?
    No. I remember when I installed GNOME I added
    portmap fam dbus hal
    to the DAEMONS line in rc.conf, without @
    Then I installed gnome-volume-manager and set it up. That picked up my ipod just fine, without any udev rule written by me.

Maybe you are looking for

  • Do I need a MacPro for this?

    Alright, first off let me say that I know I do not need a MacPro to edit DV and to create motion graphics with FCP & Motion. But I am making credits right now for my latest video, and my machine is very verrryy slugish. Let me show you the clip which

  • Bash and Linux infrastructure references

    Hi, after 3 years using Linux I would like to improve my knowledge of bash to start writing some useful scripts which can make my life easier. Do you know any good manual (better if available online) which I can use to start learning it? I'm not part

  • How to interpret the Xprof report ?

    Hi everybody, I'm trying to use the -Xprof option on the embeddedJRE 1.5 and I would like to understand the report : Flat profile of 4.76 secs (269 total ticks): main   Interpreted + native   Method                        34.6%     4  +    89    com.

  • CS 5 Bridge Downloader crashes with network drive

    For the first time with CS5 I have tried "getting photos" from my camera. If I specify the destination on my local drive there is no problem. If, I specify a mapped network drive the downloader stalls, and eventually I have to kill the program in tas

  • Error installing Mavericks on Macbook.

    I have downloaded the Mavericks installer and prepared my Mac by removing TM backups, turning off TM and rebooting.  I have a qualifying macbook running 10.6.8.  When I try to activate the installer, I get a error saying that the drive is used for Ti