Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init Script #157

Open
jfernandz opened this issue Dec 7, 2014 · 16 comments
Open

Init Script #157

jfernandz opened this issue Dec 7, 2014 · 16 comments

Comments

@jfernandz
Copy link

Hi all ... :D i write here because i'm having many issues with xboxdrv and Wine VM ... I've already built script and service... but initializes it as /dev/input/event18 no as /dev/input/js0 ... i need that it initializes /dev/input/js0 since is the device that can i remap ... (i can choose these 2 interfaces in Wine but... only can remap js0 with jstest-gtk ...) there exist way to start daemon in js0 ?

Or failing ... there exist way to remap event18 with jstest-gtk ? ...

Thanks so much.

@beaumanvienna
Copy link
Contributor

@wyre, please provide the script, service, which version of xboxdrv you use, which operating system, which controller (USB identification) and which kernel.

RetroRig is only using xboxdrv, we are not actually developing it. That being said, we can still try to help you.

The best thing is, you start with a fresh install of Ubuntu 14.04 and the latest RetroRig:

sudo add-apt-repository -y ppa:beauman/retrorig
sudo apt-get update && sudo apt-get install -y retrorig-setup
sudo retrorig-setup

This is what we mainly test and should be the easiest starting point to get things working.

@jfernandz
Copy link
Author

Well... sorry, i'm not using RetroRig... only his init-script to xboxdrv xD ... Finally i could set up completly the gamepad (I have needed putting in accordance three levels, xboxdrv init launch config, Wine VM, and Videogame was i playing)

I'm running in Debian Jessie 8 with kernel 3.16.0-4-amd64, xboxdrv 0.8.5 version and generic (non-original) xbox360 wired controller, but still i would like know how can i remap event18 instead of js0 (because it would do things easier to me)

@beaumanvienna
Copy link
Contributor

This could be a kernel problem. I would still recommend to try with Ubuntu 14.04 and RetroRig first. It's easier to alter an existing system step by step until it breaks... Can't you use a spare partition, maybe on an external HD or so?

Have you tried compiling xboxdrv on your own? This way you could add some debug code.

A bit off topic, sorry, but have you managed to get xboxdrv restarted after hibernating? Any idea what run level this is and how to change the service to do this automatically? Would be a nice feature for laptops.

@beaumanvienna
Copy link
Contributor

@wyre Any progress on this issue?

We used to have a kernel installation function in RR, which was installing a kernel we had very good experience with. It was basically this code:

        wget --tries=50 -P /tmp "http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14-trusty/linux-headers-3.14.0-031400_3.14.0-031400.201403310035_all.deb"
        wget --tries=50 -P /tmp "http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14-trusty/linux-headers-3.14.0-031400-generic_3.14.0-031400.201403310035_amd64.deb"
        wget --tries=50 -P /tmp "http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14-trusty/linux-image-3.14.0-031400-generic_3.14.0-031400.201403310035_amd64.deb"
        cd /tmp
        dpkg -i linux-headers-3.14*.deb linux-image-3.14*.deb

@ProfessorKaos64 : In my opinion we should re-activate this function. On the RR installation a talked about yesterday this kernel was fixing the network statistic display. I'm pretty sure it would solve the issues @wyre has.

@jfernandz
Copy link
Author

Oh, ... I'm on holidays and soon i will have some exams ... So ... i'm quite busy ... maybe forward ... i could try this ... but i advance that i am using 3.16 kernel on Debian (Jessie); the last version (recently updated).

Regards.

@mdeguzis
Copy link
Owner

@ProfessorKaos64 : In my opinion we should re-activate this function. On the RR installation a talked about yesterday this kernel was fixing the network statistic display. I'm pretty sure it would solve the issues

I'll try to get to this today or tomorrow. I'll get the code back in. Should we make this optional only if users have issues? I will put it back in the settings menu.

@beaumanvienna
Copy link
Contributor

I would leave it as it used to be. For users with a pretty decent internet connectivity it's fine anyway. All the others just have to be a bit more patient... (Those from "the interview" for example :-DDD )

@mdeguzis
Copy link
Owner

mdeguzis commented Jan 2, 2015

haha. Ok so it's back in the menu under Settings > System Upgrades > "Upgrade 14.04 LTS Kernel to 3.14.0". Are you saying we should upgrade the kernel automatically for 14.04 users? That would essentially calling rrs_ubuntu_kernel_upgrade() after distro/release detection or syscall sourcing.

@beaumanvienna
Copy link
Contributor

Yes. If a user is experiencing problems with a controller or the like, manually upgrading the kernel is like guessing. This is not in accordance with the RetroRig philosophy.

@jfernandz
Copy link
Author

Now I'm having some issues with service restart... It does not resume properly after hibernate or suspend ... (I am referring to 'sudo service xboxdrv restart' doesn't works, my gamepad green light is flickering and It doesn't keep first player light). I'm running on the same kernel 3.16.0-4-amd64 ...

wyre@WyRe-DebPC:$ sudo service xboxdrv start
wyre@WyRe-DebPC:
$ sudo service xboxdrv status -l
● xboxdrv.service - LSB: Start XBOX Controller Service
Loaded: loaded (/etc/init.d/xboxdrv)
Active: active (running) since lun 2015-01-05 20:42:48 CET; 1s ago
Process: 27994 ExecStop=/etc/init.d/xboxdrv stop (code=exited, status=0/SUCCESS)
Process: 28063 ExecStart=/etc/init.d/xboxdrv start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/xboxdrv.service
└─780 /usr/bin/xboxdrv -D -d --deadzone 4000 --dbus disabled --detach -i 0 -l 2 --trigger-as-button --ui-axismap x2=ABS_RX,y2=...

ene 05 20:42:48 WyRe-DebPC xboxdrv[28063]: Starting XBOX Controller Service: xboxdrvls: no se puede acceder a /dev/input/js*: No e...ectorio
ene 05 20:42:48 WyRe-DebPC xboxdrv[28063]: .
Hint: Some lines were ellipsized, use -l to show in full.
wyre@WyRe-DebPC:~$

Seems to be working properly but ... first player light don't turns on :( ... i have upgrade the system recently (not the kernel but yes many things xD) And gamepad seems to be working also when i run xboxdrv in a terminial... too rare things xD

@mdeguzis
Copy link
Owner

mdeguzis commented Jan 5, 2015

I know JC encountered this issue as well. I never suspend or hibernate, so it went unnoticed for me until now.

On January 5, 2015 2:41:56 PM EST, Javi [email protected] wrote:

Now I'm having some issues with service restart... It does not resume
properly after hibernate or suspend ... (I am referring to 'sudo
service xboxdrv restart' doesn't works, my gamepad green light is
flickering and It doesn't keep first player light). I'm running on the
same kernel 3.16.0-4-amd64 ...


Reply to this email directly or view it on GitHub:
#157 (comment)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

@jfernandz
Copy link
Author

Not problem :P

I hope a fix xD and thanks for ur attention :D


Btw, i'm using this script to resume service when hibernate or suspend with pm-utils ... but not works with systemctl.

xboxdrv/xboxdrv#95

I tell it only to inform you, this shouldn't interfere with 'sudo service xboxdrv ... '

@mdeguzis
Copy link
Owner

mdeguzis commented Jan 6, 2015

Btw, i'm using this script to resume service when hibernate or suspend with pm-utils ... but not works with systemctl.

Well currently we don't support any release that is on systemd, but of course that is inevitable with Ubuntu.

@jfernandz
Copy link
Author

But... Why don't you support systemd releases? Systemd is a vital process/daemon to start system (at least in Debian, ain't it?)

I meant that this resume script: xboxdrv/xboxdrv#95 works only with pm-utils, not with systemd, but your xboxdrv service should works with systemd ... at least, when I start the system first time, systemd starts properly the service! :D

@mdeguzis
Copy link
Owner

mdeguzis commented Jan 6, 2015

Oh we will. Its that we are currently focused on getting 14.10 working. Arch linux is probably the first one I will try to get working. Maybe this weekend using the Emulation Station version I have up.

@jfernandz
Copy link
Author

Oh, ... great! :P

Awaiting news!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants