Ubuntu :: Assign Specific Joystick Device Path To It / Controller?
Oct 13, 2010
Currently I have 5 HID's I would like to use on the system at any given time. However, I have the problem of them using different device paths depending on what order I plug them in... Which wreaks havoc on qjoypad and also my music software which looks for a specific device number, which may or may not be the same as it was last time.
For example, I have 2 rock band drum controllers which I use to send MIDI signals. I need them always assigned to the same device path, so that I don't have to change the settings in my music software every time I run it, to make sure it's looking at the right controller
Or if I am going to play games with a gamepad, but I also have the drums hooked up, the gamepad may be assigned to /dev/input/js2, so I create my qjoypad profile.... Let's say the next day I reboot with the drums not plugged in, the gamepad is now /dev/input/js0, and the qjoypad profile won't work because it is looking for that gamepad at /dev/input/js2... So I would either have to create a new profile, or hook the drums back up in the same order ... Or something
It's just a mess...
Is there any way to tell Ubuntu to say "/dev/input/js0 is always Playstation gamepad", "/dev/input/js1 is always drum pad 1", etc.?
Or some way to do away with /dev/input scheme altogether and somehow link directly to the name of the device?
This is one of those questions where I highly suspect that the answer will be something like ". . .just stinks bein' you, kid."My setup:I have Ubuntu 10.04 x64 (desktop) installed on a computer with a bunch of SATA ports, including one e-SATA on the backBecause of the way the hardware works with these ports, the *external* port is the first SATA port, a second SATA port inside becomes #2, and a cluster of four ports (that can be made into a (ahem!) RAID array become ports 3 through 6.
All ports are configured as SATA (PATA emulation)My boot drive is located on SATA-2 (the inside connector), a four disk "MD" raid array is located on SATA 3-6, and I have an external HD enclosure that I plug into the e-SATA connection.
With all six drives plugged in, they get ordered like this: /dev/sda - External drive /dev/sdb - Internal operating system drive (bootable)
I'm using a "HuiJia USB Gamepad" to connect a standard N64 controller to my computer over USB. I'm doing this so that I can play games using mupen64plus, which uses the SDL to get input. My problem has to do with the way the adapter deals with C button events. Apparently, the u/d and l/r C buttons are treated by the adapter as joystick axes, so joystick events are generated by using them. But, for some reason, these events aren't recognized by SDL.
It gets stranger - if I cat the output of /dev/input/event5, the event gets printed when a C button is pressed. Furthermore, when I configure SDL to use the /dev/input/event* devices rather than /dev/input/js0, the C buttons are recognized! (Though, this leads to a situation where the joystick can't be calibrated... go figure). So, I can either have a correctly calibrated joystick with no C buttons or a miscalibrated joystick with working C buttons. Does anyone have any idea what I can do about this situation? The best outcome would be to force the C button joystick events to appear when using /dev/input/js0. Device as it appears in the output of lsusb:
I have the Joystick driver installed and it works in the FlightGear app. I need to calibrate it if possible. I found jsattach and jscal. I know it works like a Logitech Warrier. I don't know the device nomenclature. I connects to a USB port so I suspect it is a /dev/usbmon X with X = o thru 7. I don't know how to identify it.
How can I assign a directory to a specific partition (another hard drive)?How would someone move / home/ username/music to another drive or partition? But do so in a way that it no longer writes MP3's (or FLAC) files in the original directory of the root drive?
I am using ubuntu 10.04 and opensuse 11.3. I would like to know how to assign each application to a specific worksapce. For example,when I open a pdf file, it will be moved to workspace2. When I open a movie, it will be moved to workspace3. In Leopard, "Space" have such features. I would like to know the way to achieve this in ubuntu and opensuse, in an easy way, meaning that just need to install a small package, not a big one , like compiz
Using Ubuntu Server maverick here - after altering /etc/network/interfaces to use a static ip and checking /etc/resolv.conf (no alteration needed) no network services were working at all. Here are the contents of interfaces:
Code: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.0 gateway 192.168.1.254
I was fairly certain that this was verbatim from my previous server which is no longer attached to the network. After hours of fooling around with no success I changed the address to 192.168.1.99 and it worked perfectly. So my question is: why? My old server used 100. Could the router refuse to give a new server the same address or something like that since that address had been taken in the past?
Okay, I have been all over the web... all over JustLinux and pretty much spent several months trying to find one simple answer. How do I easily map two applications to my trackball?I have a Kensington Expert Mouse Model K64325. It has a scroll wheel, and 4 mouse buttons. I have used xev to figure out which button is which. The upper left = 2 and the upper right = 8. I want the upper left to open Firefox when I click it. I want the upper right to open REALBasic when I click it.I know this can be done (really easily too!) in Windows. I want to do it in Linux. Especially since I have several systems like this. Also I can then take what I learn from my own experience and start mapping OTHER people that are total Linux newbs, mice for them.
The mouse works great all I want are the two feature/options I just listed and I cannot find a single answer anywhere on the web that seem to address my question. SO I am hoping someone here will have a laymans answer.
I want to setup 1Gbps our lab network and we purchased 'Buffulo Giga layer switch ' with 24ports. Is there a way to tell DHCP to assign specific IP to a particular MAC address of a machine ? We want to use DHCP and whatever the port we use ,it should have same IP ..
I am new to ubuntu and just installed the vsftpd service by this tutorial: [URL]. Now my question is how can I give users rights to one specific folder? useradd username -d /home/folder/new Thats the command id used but when I login to the ftp the user is able to see all other folders as well ..
I have some beginner questions about DHCP, Avahi, and configuring a small home LAN.Suppose I have a dynamic IP address assigned by my ISP, which requires DHCP be enabled in my dsl modem/router/"firewall" [sic]. Suppose for simplicity I have just one PC behind the dsl modem.I think "enabling DHCP" in the modem/router means that a DHCP client runs on the router, which communicates with a DHCP server run by my ISP when I boot up a PC on my LAN. Is that guess correct? Can I get DHCP to assign a particular local IP, say 192.168.1.10 (which is not the one taken by the router--- for this discussion, let's say that is 192.168.1.0) to my PC each time I boot it up?
Now suppose I want to build a stand-alone firewall, so that my LAN will have the firewall and the first PC behind the modem, with the first PC virtually behind the firewall. By default, I think these will both have DHCP clients running which I need to configure properly. The firewall should also have a DHCP server which should control how local IP addresses are assigned, correct? I should try to arrange that the LAN has only DHCP server, only one NTP timeserver, only one DNS nameserver, correct?My first PC seems to have installed an autorun client called Avahi, which performs DNS multicast services and incorporates something called zeroconf which seems to have something to do with remote desktops, which I don't need and which is a potential security hazard. But it seems that Avahi is an intrinsic part of the KDE desktop and cannot be removed. Just want to be sure that Avahi can coexist comfortably with dhcp3-client, which is also installed on that PC. They perform different tasks, correct?If I can get the stand-alone firewall to work, I know I need to turn off the commercial firewall in the dslmodem/router/firewall device. Should I purchase a bridge and try to turn off the routing function also?
I have 2 monitors. I'm using the Nvidia driver in Twinview Mode on the right side. I can move the cursor from one monitor to the next and I can drag applications between the two. I have multiple activities. And the second monitor selected one of those other activities as the background. I'm not sure how this was chosen, or if I have a choice. Anyone know? Do activities affect what is displayed in a dual monitor setting? As I toggle through the activities, the two monitors change, but never to the same one.
When I open an application, it's a guessing game which monitor it appears on. Can I control that?
I know if one clicks the top left corner of an application they can send it "To Desktop" ("all", "Desktop 1", "Desktop 2", etc). If I could assign "Desktop 1" to monitor 1, and "Desktop 2" to monitor 2, I could then use the "To Desktop".
At a minimum, how does one control where applications open in a dual monitor setting?
I am using CentOS 5.5 and I created few users (useradd john etc.) and now I want to assign privileges to this user on some directories and files in those directories. For example I want to give read privileges to directory "/documents" and all of files under that directory.
Im writing a script that extracts part of the path name:I drop a file in terminal and set the directory name of the file to x using dirname $0note: ( directory is different every time since not all files are from the same location)
ex. x="/home/Downloads/yesterday/photo/.../image.png" /image.png /.../ means I dont know the name of folders between but I know the path name always starts
I need to either force a redetection of my hardware or get the system to use the specific piece of hardware it is no longer using. Details Fedora 12 NVidia chipset/audio controller Modprobe details of device "nVidia Corporation MCP79 High Definition Audio" Tried installing kudzu but it does not install....
I failed to install flash-plugin on my firefox My firefox is installed on path "/home/<<user>>/firefox"
1) I tried to install flash plugin by rpm -Uvh flash-plugin-10.0.32.18-release-i386.rpm It is not working as the files are not installed on the folder /home/<<user>>/firefox/
2) yum install flash-plugin It returns "nothing to do"
3) I extracted and copied the files in the rpm to /home/<<user>>/firefox/flash-plugin then create a link by ln -s /home/<<user>>/firefox/flash-plugin/libflashplayer.so /home/<<user>>/firefox/plugins/libflashplayer.so When I open the firefox, it crashed.
I really wanna use the OS. I wiped my laptop and installed it but I can't change my screen resolution (it's stuck at 1024 X 768 and my refresh rate is at 0 HZ) I tried installing a driver that was for both the i9xx and i8xx chipset family but it doesn't look like it helped anything. I want to be able to play World of Warcraft Wrath of The Lich King but when I try it the way the computer is now the the frame rate is really really slow. I also need to fix my audio because there's crackling that comes from the speakers often. I attached a screen shot of what I get when I enter the command: sudo lshw -c video Changing the resolution isn't the problem so much as the fact that I can't change the refresh rate from "0 HZ" to anything higher so that my game will play smoothly. I would also like to put compiz fushion on my laptop as well but I don't believe it will work unless I resolve this problem.
For years I have used a Slax live CD on a laptop to clone internal HDDs to USB HDDs. I recently purchased a Sony VPCF136FM laptop with Intel Core i7 CPU. It apparently has USB 3.0 ports. The problem is the USB ports are dead with Slax. There is a USB devise driver available for Windows 7 from Sony but nothing for Linux operating systems. Can this driver be ported to Linux? It is an exacutable (XXX.exe). The chip for the USB Host is from Renesas Electronics (no help there, either). Where can I find a device driver to use with Slax and how would I install it?
I currently have 3 drives installed to be used as a file server. 1 holds the Ubuntu OS The other is the file server drive with 1 additional for backup using raid1.
2 Questions: 1) How do I get to the drive or Raid device to put files on the drive using command line (the 2 drives are sda & sdc that are connected to the raid1 device)?
2) How do I set the path in Samba to connect to this RAID drive.
In Linux, Is there a way to remember/change a path to a USB device? In my case, I need linux to remember that my USB serial adapter will stay on /dev/ttyUSB0, but when I unplug it and plug it back in, it switches to /dev/ttyUSB1. I'm using a debian-based distro(mint)
I've just installed Ubuntu 10.4 and was trying to use a small bash script for which I need hcitool to return the device name. The problem is that hcitool returns nothing when I query for the device's name using the address. The address was found using hcitool's scan option, so I know the device is responding. Also, I can pair the laptop with the phone using gnome's bluetooth application, what I can't do is get hcitool to return the device's name. I've tried scanning for other devices and querying for their names, and I tried using another laptop with Ubuntu installed to get the phone's name, in all cases hcitool returns the device's name, only when issuing the query from my mac to this specific phone does hcitool fail.
I'm issuing the following commands: Code: knitter@knitter-laptop:~$ hcitool scan Scanning ... <address omitted><name omitted> 00:8D:31:8C:0C:0AKntSE <address omitted><name omitted>
After getting the list of devices that were found I grab my phone's address and ask for the name. Code: knitter@knitter-laptop:~$ hcitool name 00:8D:31:8C:0C:0A knitter@knitter-laptop:~$ As you can see, when scanning for devices I get both the address and the name, but when asking for the name I get nothing, and I really needed to use the hcitool name <address> command for the script as it would make things easier.
I am trying to setup a complex audio system, but I won't bore you with the details (unless you ask). Basically, I want to have pulseaudio only use one specific device and ignore the rest of the devices.
11.04 64 bit I just picked up a new high-gain usb wireless adapter that I would like to use for a while in place of the built in wireless adapter in my desktop. It is detected and works just fine. My question is this: Is there any way I can disable just the built in adapter and leave the new one active (or visa versa?) I don't want to remove the built-in one as there will be occasions that I will want to use both.
I have a ZTE 3G USB modem (MF645). When I plug it, 5 devices appear: /dev/ttyUSB[0-4]. The modem device is /dev/ttyUSB2, and I can successfully connect wvdial on it. NetworkManager detects the modem, however, it tries to connect to /dev/ttyUSB1 instead, and fails.
How does NM decides which device to connect to? Is it possible to instruct it to connect to a specific device?
I was trying to get this feature: wake up my htpc from s3 with my remote control and the solution is to modify /proc/acpi/wakeup and a descriptor in /sys. Here are the details: I'm using a Microsoft IR receiver for MCE remote that appears as dev 2 of bus 2 in lsusb
root@htpc:~# lsusb Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 002: ID 0471:0815 Philips (or NXP) eHome Infrared Receiver Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 006: ID 045e:0714 Microsoft Corp. Bus 001 Device 005: ID 045e:0715 Microsoft Corp. Bus 001 Device 004: ID 045e:0707 Microsoft Corp. Wireless Laser Mouse 8000 Bus 001 Device 003: ID 045e:070c Microsoft Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub....
That's USB0 I have to enabled, why not usb 1 or 2 (bus 2 in lsusb)? Moreover why are all the disabled/enabled preceded with a star and S4 and not S3 mentioned? Nevertheless that wasn't enough to get it work. I looked in gconf-editor in apps/gnome-power-manager/general but I have no can-suspend or something similar... (I'm running on 10.10, with 10.04 I could suspend only once, afterwards the computer didn't go to suspend, just black screen then login screen). So I looked in /sys/ and found that 'cat /sys/bus/usb/devices/2-1/power/wakeup' (notice the 2.1 as bus 2 device 2 (0,1,...) gave 'disabled' so a echo enabled > /sys/bus/usb/devices/2-1/power/wakeup and now I can wake-up with the remote when I want.
What I don't understand: Why USB0 in /proc/acpi/wakeup ? Why have to change in /proc and /sys ? Is it possible to automate this to get it work even if I change the usb port the receiver is plugged in ?