Xboxdrv without root?

I'm trying to run the xboxdrv driver as a systemd user service (so that I can start the service when I want to use it for keyboard mapping, etc, and stop it when I want to play a game that supports the controller directly via Joydev), but I can't get xboxdrv itself working without root.
I have already set permissions up so I can cat /dev/input/js* without root, but it seems xboxdrv is doing something a little lower-level, something I can't control via udev and permissions. It seems to be bypassing the filesystem altogether and trying to access the controller via something called "libusb".
Here's the output of a few commands that might be helpful:
$ xboxdrv
xboxdrv 0.8.5 - http://pingus.seul.org/~grumbel/xboxdrv/
Copyright © 2008-2011 Ingo Ruhnke <[email protected]>
Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details.
Controller: Afterglow Gamepad for Xbox 360
Vendor/Product: 0e6f:0213
USB Path: 005:007
Controller Type: Xbox360
-- [ ERROR ] ------------------------------------------------------
USBController::USBController(): libusb_open() failed: LIBUSB_ERROR_ACCESS
$ sudo xboxdrv
xboxdrv 0.8.5 - http://pingus.seul.org/~grumbel/xboxdrv/
Copyright © 2008-2011 Ingo Ruhnke <[email protected]>
Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details.
Controller: Afterglow Gamepad for Xbox 360
Vendor/Product: 0e6f:0213
USB Path: 005:007
Controller Type: Xbox360
Your Xbox/Xbox360 controller should now be available as:
/dev/input/js1
/dev/input/event9
Press Ctrl-c to quit, use '--silent' to suppress the event output
[SUCCESS]
^C
$ xboxdrv -L
id | wid | idVendor | idProduct | Name
----+-----+----------+-----------+--------------------------------------
0 | 0 | 0x0e6f | 0x0213 | Afterglow Gamepad for Xbox 360
$
What do I do? The current systemd user service I'll be using once I get it working is this:
# ~/.config/user/systemd/xboxdrv.service
[Unit]
Description=XBox controller keyboard bindings
[Service]
Type=simple
ExecStart=/usr/bin/xboxdrv -D -c ~/.config/xboxdrv/xboxdrv.conf
PIDFile=%h/.config/xboxdrv/xboxdrv.pid
[Install]
WantedBy=multi-user.target
(If there are any glaringly obvious errors in that, please give me a heads up! )

nomorewindows wrote:This xbox to keyboard feature is it something in the xboxdrv package?   Most programs change the buttons that do certain actions configured from whatever joystick-aware program you are using.  I just plugged my joystick in, and it is located under /dev/input/js0, with input group and 0664 for the mode.  You'll just have to try it to see what it behaves like.  If it requires xboxdrv to even work, it may not do anything.  The linuxconsole package also allows for testing of the joystick interface.
xf86-input-joystick is similar to xboxdrv, except it's tied to the X server, and so it cannot reload its configuration or be enabled/disabled without editing system-wide configuration files and restarting the X server.
I'm sure xf86-input-joystick would work perfectly well for keyboard mapping. But if I'm going to use something that requires root to run and change, I may just as well set xboxdrv up as a system service instead, since that way I could at least still change the mappings and enable/disable it without restarting the X server. It would still require root, though, and that's what I'd like to avoid if at all possible.
Last edited by ThePacman (2014-10-13 14:39:01)

Similar Messages

  • Need to run fmsedge process without root access

    1937396
    On Linux, the fmsedge process needed to run without root access.

    I see that in the release notes
    new in this release:
    1937396
    On Linux, the fmsedge process needed to run without root access.
    However I have not found any documentaion on how to do this?
    I would love to run the fmsedge process run as non-root so tht root does not own the 1935 listening port.
    fmsedge   26837  root   19u  IPv4  4007676       TCP localhost:19350 (LISTEN)
    fmsedge   26837  root   24u  IPv4  4007679       TCP *:1935 (LISTEN)
    fmsedge   26837  root   35u  IPv4  4007717       TCP localhost:19350->localhost:59625 (ESTABLISHED)
    fmsedge   26837  root   57u  IPv4 26532589       TCP localhost:19350->localhost:58913 (ESTABLISHED)
    This appear to not be the default setup.
    Thanks in advance if anyone has tackled this!

  • Error while opening systemproperties it say reinstall UCM without root uses

    UCM 11g gives error while opening Systemproperties applet, it says UCM is installed by root user reinstall it without root user. We have installed the UCM from a non root user however we are getting this error and non of the applet is opening which are in ../bin/ folder.
    Is there a way this error can be fixed.
    Thanks,
    Rajiv

    do you have any directories owned by root? I've seen some nfs issues change ownership of mounted directories when they're remounted.
    is anything in the /bin/ directory owned by root?
    I think you should be safe to chown back to your install user.
    -ryan

  • How to create JTree without root node

    Hello;
    I like to create a JTree without root node?
    Any help?
    Thanks!
    --tony                                                                                                                                                                                   

    javadocs JTree,
    setRootVisible
    public void setRootVisible(boolean rootVisible)
    Determines whether or not the root node from the TreeModel is visible.
    Parameters:
    rootVisible - true if the root node of the tree is to be displayedSee Also:
    rootVisible

  • Reading the ethernet address without root permissions

    Hello,
    Is there a way to get the ethernet address of a network interface without root permissions (in a user program)?
    I need the mac address in order to generate DCE's uuids. The mac address is used as a unique machine identifier.
    Serge

    HI
    You may use this program copied from a technote 2856-09 to get MAC address in C. Works fine only if arp cache is present though . It
    does not talk to the driver directly . May be usefull to you. Compile
    with "-lsocket -lnsl" flags.
    <pre>
    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/sockio.h>
    #include <sys/socket.h>
    #include <net/if.h>
    #include <net/if_arp.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
    #include <netdb.h>
    #include <errno.h>
    main(argc, argv)
    int argc;
    char *argv[];
    int sockfd, i;
    struct arpreq arpreq;
    struct sockaddr_in *sin;
    struct hostent *hp;
    char host[256];
    if(argc != 2)
    printf("Usage : %s hostname\n", argv[0]), exit(1);
    strcpy(host, argv[1]);
    bzero(&arpreq, sizeof(struct arpreq));
    arpreq.arp_pa.sa_family = AF_INET;
    sin = (struct sockaddr_in *)&arpreq.arp_pa;
    sin->sin_family = AF_INET;
    sin->sin_addr.s_addr = inet_addr(host);
    if (sin->sin_addr.s_addr == -1) {
    hp = gethostbyname(host);
    if (hp == NULL) {
    fprintf(stderr, "%s: %s: unknown host\n",
    argv[0], host);
    exit(1);
    bcopy((char *)hp->h_addr, (char *)&sin->sin_addr,
    sizeof
    (sin->sin_addr));
    if ( (sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0 )
    perror("can't open datagram socket");
    if (ioctl(sockfd, SIOCGARP, (caddr_t)&arpreq) < 0)
    if (errno == ENXIO)
    printf("%s (%s) -- no entry\n",
    host, inet_ntoa(sin->sin_addr));
    else
    perror("SIOCGARP IOCTL failed");
    exit(1);
    printf("Hostname : %s", host);
    for (i=0; i<6; i++)
    printf("%c%x", i == 0 ? '\t': ':', (unsigned
    char)arpreq.arp_ha.sa_data);
    printf("\n");
    close(sockfd);
    exit(0);
    </pre>

  • How to use SAX Parseto paser xml without root element

    Hello,
    I have big a xml file(500M) with without root element. How can I use SAXParse to parse it.

    A well-formed XML file has a single root element. Your parser can't deal with any other kind. So find the person who produced that file and explain politely that it's no good. (Hitting them with a big stick would be optional.)
    You could write a non-XML program that reads it in and creates a new version, wrapped in a single root element, if your supplier can't fix their problem.

  • How to install from existing linux without root privilege?

    We have a ubuntu server for develop in our company and I have a account. I am more familiar with archlinux. However, I can't just tell the system administrator to replace ubuntu with arch, since that would break everything. And I do not have root privilege. So I am wondering would it possible to install archlinux in the home directory, and use it like a virtual machine?

    DSpider wrote:
    Pacman needs root privileges (sudo) to work.
    So if sudo works for you, then you have root privileges.
    Maybe fakeroot or fakechroot?
    Trilby wrote:
    Ubuntu + pacman != arch.
    If you are able/allowed to reboot the machine, you certainly can install arch on a flash drive and have your portable system that you would run on their hardware.
    I am asking something different. I want to run arch on another linux.
    ewaller wrote:
    So, as a user on the system, you should be able to install anything you want to your home directory.
    What, specifically, would you like to install to your home directory that you can run with plain user permissions without causing impact to other users.  I am confused as to what you think you want to do..
    Something like, install software (including pacman) to home directory via pacman. Start a server by rc.d (I think in this case, sys-V is better than systemd).
    For example, I could run this command in ubuntu without root permission, and that ubuntu server didn't install mysql.
    $ pacman -S mysql
    $ rc.d start mysqld
    $ #Or "systemstl start mysqld.service"

  • Install JMQ into other directory than /opt/sun/ without root user possible?

    hi *,
    i just wanted to know if there is the possibility to install JMQ 4.1 in a custom directory?
    AND is there the possibility to install the JMQ server without root?
    we do have several embedded JMQ servers inside sun appserver that do not need root or a specific directory why should the standalone version need this?
    regards chris

    There is no non-root install available on Solaris or Linux with SJSMQ. (we are looking into it, but we have been waiting for a new packaging system to come out as a side-effect of Solaris 11 which would handle installation in non-root locations, management of packages and patching).
    We are also investigating making the packages re-locatable in the next release (so you would still have to be root but you could cleanly install into export or some other location). However this requires generating a whole new bundle of packages and later patches (the current layout is dictated by the fact that we have older releases which ship included in the solaris operating system)
    At the moment ...
    On Solaris, you can install SJSMQ as root into another directory (using the -R flag to pkgadd) however the installed directory structure looks a bit nasty (since it would look have paths something like /export/mq/usr/share/lib/imq/props/config.props)
    On openMQ, we do have a tar based bundle which can be installed on any system (not as root). The downside is that it is not supported and can not be patched.

  • Rutilt without root password?

    Is there any way to use rutilt or wifi-radar without sudo or a root password, as is done with e.g. wicd and networkmanager? I'm getting sick of wicd's bugs, but the root access requirement is annoying - can I make these applications respect the network group, or allow some other group to use them without root priveleges? Or would that be too insecure?

    I've been using wifi-radar for ages and really like it.  To avoid having to run as root or enter password I've added to /etc/sudoers file:
    username ALL=(ALL) NOPASSWD: /usr/bin/wifi-radar
    I don't know if this would be what you want as it's kinda using sudo without having to type in "sudo wifi-radar".  wifi-radar is added to my DAEMONS list in rc.conf and works great.  I also have a wifi-radar icon in my E17 ibar so I can check out other access points if I want.  Come to think of it, is what I'm doing insecure?  Never really thought about it.

  • Remove Bloat without root

    Remove Bloat without root
    The S4 allows you to freeze a lot of the bloat except
    Allshare  Samsung hub media  Samsung updater  watchon Verizon voicemail
    I don't  use any of the above and with the fact that Verizon is pushing data limits any app that might eat up that data we should be allowed to freeze
    Rooting is not an option not because it doesn't work it makes your device very insecure which is not a good alternative
    With any up coming patch provide us a way to freeze apps we will not use .

    Go into setting apps and you can disable the apps.
    FYI some of those apps you listed isn't from Verizon. You'll find them on ALL Samsung devices. WatchOn is also tied to your IR blaster. Some of them are tied to touchwiz(allshare for example).

  • Lenovo s90a six axis controller support without rooting

    I bought a lenovo s90a recently and want to use a ps3 controller on it. does anyone has a video that shows it will work without rooting? i have read somewhere that a device has to be "usb host supported" first . is the lenovo s90a supported? please, can anyone help me? thanks in advance. 

  • How extract Solaris package without root privilege

    Hi!
    Is there any way to extract files from Solaris package file (.pkg) without root privilege?
    Like I can do it for rpm: rpm2cpio foo-2.0.i386.rpm | cpio -ivmud

    You can use 'pkgtrans':
    Syntax:
    pkgtrans <package> <destination directory>
    .7/M.

  • [SOLVED] load VirtualBox modules without root pw

    Hi,
    i want to write a wrapper script for virtualbox to load the modules when virtualbox starts and unload them when it exits.
    is there a way to load those specific modules without root password? i could teach sudo to allow modprobe without password but that would be a security problem.
    Last edited by jnhieber (2013-07-13 16:42:19)

    I'm experiencing some problems with suspend to ram on my x230t. since kernel 3.10 i often get a kernel panic when i suspend.
    i use an up to date system (no testing) with linux-ck-ivybridge and intel graphics. i wrote systemd scripts to unload third party modules before suspend (like vboxdrv).
    that actually doesn't solve the problem but i thought it might be a good idea if only loading such modules when they are really needed, i don't use virtualbox often.
    thanks for the reply, i think this can work. the script can only be changed by root so this would be no security problem.
    so this is solved, i'm thinking about a new topic regarding my kernel panics, do you know where to get the kernel logs of the panic?
    when i go to suspend the sleep led blinks fast and the screen is blank, so i have to rely on log files.

  • Ultimate Backup Tool v2.0 (Beta) - Full backup without root and unlock

    Easy to use tool and useful, for instance before unlocking bootloader which causes a factory reset.
    All credits go to GIGADROID and team, off course:
    [TOOL][Multi-Platform] Ultimate Backup Tool v2.0 (Beta) - Full backup without root - xda-developers

    jay2727 wrote:
    DO you know if this will work with my S2109 (which is obviously locked completely down)?
    I don't know the S2109.
    Just try and see...

  • How to allow users to launch SMC; login to SMC without root account

    I've very familliar with how to create accounts and assign members to groups and assign privliges in Solairs 10 using SMC. I want a user to review the audit logs using the SMC console since the logs are GUI but I don't want the user to use the root account to login to SMC. I know the user can use the su command but I can only login with root after typing su and then launch SMC.
    Bottom line what is the best way a user can use the SMC console without having the root password to execute SMC and then login to SMC and view the audit logs?
    A million thanks
    John

    I found the best solution is to use a Role Based Access Control (RBAC). Using SMC as root go the the Role Icon and setup a Role using the wizzard. Next have the user login to the system, go to the terminal and type:
    /usr/sadm/bin/smc &
    The individual user will be prompted to login with his specific user name and password and then prompted to use the Role Login Name and Password you provided in the above paragraph.
    Now the user can perform SMC functions without the need for root.

Maybe you are looking for

  • Exporting from Final Cut Pro 5.1.4 is stretched too wide

    I imported my HD footage from iMovie at 1280x720 and edited, now every time I export it from FCP 5.1.4 comes out with short fat people in the movie. Help? What settings to use to get it out at full quality? Thanks Dan

  • Web page composer -end user

    hello, i've created a site with the help of this blog: "Web Page Composer - a new Way to create and publish Web Pages in the Portal" Web Page Composer - Web Page Layout (Part IV) Web Page Composer - the XML Editor Framework (Part II) Web Page Compose

  • Export a purchased Dvd to I-Tunes for Apple TV

    I have a dvd that I purchased that I would like to download to my itunes account. The service hot line says I need the digital version which is only available on newer dvds. My question is there a way to download to itunes or is there a third party s

  • Calling every class in a folder?

    My problem is such: Short version: I would like to extract every java class in a given package (and sub-packages) and create an instance if each one. I can make sure each class I put in this package is able to be instantiated. Longer version: The goa

  • Message Mapping Halt

    Hi, I am making a RFC lookup and depending upon the result , need to halt the further process of mapping. I have gone through Alex weblog but was thinking for other alternatives on the same. Please share light on this. I would like my custom message