View previous topic :: View next topic |
Author |
Message |
dartleader Tux's lil' helper
Joined: 21 Apr 2019 Posts: 118
|
Posted: Mon May 10, 2021 11:26 pm Post subject: Zsnes cannot detect any mice |
|
|
Hey everyone, I'm trying to get zsnes working.
When I run without sudo, I am unable to detect any mice, like so:
Code: | ZSNES v1.51, (c) 1997-2007, ZSNES Team
Be sure to check http://www.zsnes.com/ for the latest version.
ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE.TXT' thoroughly before doing so.
Use ZSNES -? for command line definitions.
This is a work in progress build. It contains code which
May or may not be complete
If this is supposed to be an official release, you forgot to
run configure with --enable-release, go rebuild.
Starting Mouse detection.
Unable to poll /dev/input/event24. Make sure you have read permissions to it.
Unable to poll /dev/input/event23. Make sure you have read permissions to it.
Unable to poll /dev/input/event22. Make sure you have read permissions to it.
Unable to poll /dev/input/event21. Make sure you have read permissions to it.
Unable to poll /dev/input/event20. Make sure you have read permissions to it.
Unable to poll /dev/input/event19. Make sure you have read permissions to it.
Unable to poll /dev/input/event18. Make sure you have read permissions to it.
Unable to poll /dev/input/event17. Make sure you have read permissions to it.
Unable to poll /dev/input/event16. Make sure you have read permissions to it.
Unable to poll /dev/input/event15. Make sure you have read permissions to it.
Unable to poll /dev/input/event14. Make sure you have read permissions to it.
Unable to poll /dev/input/event13. Make sure you have read permissions to it.
Unable to poll /dev/input/event12. Make sure you have read permissions to it.
Unable to poll /dev/input/event11. Make sure you have read permissions to it.
Unable to poll /dev/input/event10. Make sure you have read permissions to it.
Unable to poll /dev/input/event9. Make sure you have read permissions to it.
Unable to poll /dev/input/event8. Make sure you have read permissions to it.
Unable to poll /dev/input/event7. Make sure you have read permissions to it.
Unable to poll /dev/input/event6. Make sure you have read permissions to it.
Unable to poll /dev/input/event5. Make sure you have read permissions to it.
Unable to poll /dev/input/event4. Make sure you have read permissions to it.
Unable to poll /dev/input/event3. Make sure you have read permissions to it.
Unable to poll /dev/input/event2. Make sure you have read permissions to it.
Unable to poll /dev/input/event1. Make sure you have read permissions to it.
Unable to poll /dev/input/event0. Make sure you have read permissions to it.
ManyMouse: 0 mice detected.
Could not set 640x480 video mode: No available video device |
When I run with sudo, mouse detection works fine but I am still unable to detect a video card.
Code: | ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE.TXT' thoroughly before doing so.
Use ZSNES -? for command line definitions.
This is a work in progress build. It contains code which
May or may not be complete
If this is supposed to be an official release, you forgot to
run configure with --enable-release, go rebuild.
Starting Mouse detection.
ManyMouse: 3 mice detected.
Using ManyMouse for:
Mouse 0: MSFT0001:00 06CB:7F28 Touchpad
Mouse 1: MSFT0001:00 06CB:7F28 Mouse
File opened successfully !
Could not set 640x480 video mode: No available video device |
My laptop has switchable graphics, and both my cards are visible using lspci -k:
Code: | 01:00.0 VGA compatible controller: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6) |
I have the nvidia and amdgpu modules loaded:
Code: | i2c_nvidia_gpu 16384 0
i2c_core 102400 10 i2c_designware_platform,ucsi_ccg,i2c_hid,i2c_designware_core,i2c_nvidia_gpu,drm_kms_helper,i2c_algo_bit,amdgpu,i2c_piix4,drm |
Code: | amdgpu 5619712 2
mfd_core 20480 1 amdgpu
iommu_v2 20480 1 amdgpu
gpu_sched 45056 1 amdgpu
i2c_algo_bit 16384 1 amdgpu
ttm 118784 1 amdgpu
drm_kms_helper 274432 1 amdgpu
drm 606208 6 gpu_sched,drm_kms_helper,amdgpu,ttm
backlight 24576 3 video,amdgpu,drm
i2c_core 102400 10 i2c_designware_platform,ucsi_ccg,i2c_hid,i2c_designware_core,i2c_nvidia_gpu,drm_kms_helper,i2c_algo_bit,amdgpu,i2c_piix4,drm |
And my user is in the video group:
Code: | wheel mail audio video kvm usb pcap dartleader |
I have zsnes compiled with opengl support:
Code: | Portage 3.0.18 (python 3.8.9-final-0, default/linux/amd64/17.1/hardened, gcc-10.2.0, glibc-2.32-r7, 5.10.27-gentoo-x86_64 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-5.10.27-gentoo-x86_64-x86_64-AMD_Ryzen_7_4800H_with_Radeon_Graphics-with-glibc2.2.5
KiB Mem: 15805376 total, 14273280 free
KiB Swap: 16777212 total, 16777212 free
Timestamp of repository gentoo: Mon, 10 May 2021 00:45:01 +0000
Head commit of repository gentoo: 35de719c29a72ddc5997182130dc25eae547c4ff
Head commit of repository steam-overlay: 9a1249fdb3e3005041fb768af02e235c46dc4a18
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
app-shells/bash: 5.0_p18::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.30.3::gentoo
dev-lang/python: 2.7.18_p9::gentoo, 3.8.9_p2::gentoo, 3.9.4_p1::gentoo
dev-lang/rust: 1.51.0-r2::gentoo
dev-util/cmake: 3.18.5::gentoo
sys-apps/baselayout: 2.7::gentoo
sys-apps/openrc: 0.42.1-r1::gentoo
sys-apps/sandbox: 2.22::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake: 1.16.2-r1::gentoo
sys-devel/binutils: 2.35.2::gentoo
sys-devel/gcc: 10.2.0-r5::gentoo
sys-devel/gcc-config: 2.4::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc: 2.32-r7::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-max-age: 24
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
haskell
location: /var/lib/layman/haskell
masters: gentoo
priority: 50
steam-overlay
location: /usr/local/portage/steam-overlay
sync-type: git
sync-uri: https://github.com/anyc/steam-overlay.git
masters: gentoo
priority: 50
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=znver2 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=znver2 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver2 -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 crypt elogind hardened iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre pie readline seccomp split-usr ssl ssp unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
=================================================================
Package Settings
=================================================================
games-emulation/zsnes-1.51-r9::gentoo was built with the following:
USE="debug opengl -ao -custom-cflags -png" ABI_X86="(64)" |
Just wondering if anyone had any guidance or suggestions. I have tried launching in several different video modes using the -v flag but they all return the same error, unable to find a video device.
I would like to be able to run zsnes and have it fully functional without having to invoke sudo, but I'll settle for getting the video sorted out first. |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2713
|
Posted: Tue May 11, 2021 4:04 am Post subject: |
|
|
Are you sure you want to get zsnes working?
I mean, instead of virtually any other modern snes emulator that are each more sane (recent snes9x, higan, mednafen, etc... and others not in main ::gentoo like mesen-S, retroarch + varied libretro cores)
If it was up to me, I'd remove zsnes from ::gentoo, it already needs 13 patches to barely function and hasn't seen a new release since 2007 (despite unpatched version 1.51 being a security hazard that allow roms to run arbitrary code on the host system, I do believe we're not affected due to patches.. but wouldn't be surprised if there's more).
Edit: as an amusing tidbit, some romhacks test for if "255 + 255 = 100" to detect if they're run by zsnes |
|
Back to top |
|
|
dartleader Tux's lil' helper
Joined: 21 Apr 2019 Posts: 118
|
Posted: Tue May 11, 2021 8:51 pm Post subject: |
|
|
Ionen wrote: | Are you sure you want to get zsnes working?
I mean, instead of virtually any other modern snes emulator that are each more sane (recent snes9x, higan, mednafen, etc... and others not in main ::gentoo like mesen-S, retroarch + varied libretro cores)
If it was up to me, I'd remove zsnes from ::gentoo, it already needs 13 patches to barely function and hasn't seen a new release since 2007 (despite unpatched version 1.51 being a security hazard that allow roms to run arbitrary code on the host system, I do believe we're not affected due to patches.. but wouldn't be surprised if there's more).
Edit: as an amusing tidbit, some romhacks test for if "255 + 255 = 100" to detect if they're run by zsnes |
Wow thanks, I hadn't realized zsnes was so out of date. I just went to it because I used it as a kid. I'll check out snes9x, thanks! |
|
Back to top |
|
|
sdauth Guru
Joined: 19 Sep 2018 Posts: 568 Location: Ásgarðr
|
Posted: Wed May 12, 2021 6:15 am Post subject: |
|
|
Like Ionen said, you might want to try games-emulation/mednafen with its gui games-emulation/mednaffe
https://mednafen.github.io/
It is a really nice multi-system emulator (it includes snes of course!)
And it has recently been upgraded to latest ! (finally ) Really performant and quick to configure.
An other option is retroarch but it is only available through overlay and it is too much hassle for a simple quick play imo. But I still have it for some nice cores like flycast. (dreamcast) |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2713
|
Posted: Wed May 12, 2021 6:46 am Post subject: |
|
|
sdauth wrote: | And it has recently been upgraded to latest ! (finally ) Really performant and quick to configure. | Glad to hear it's working good because I'm the one that did the latest bump for mednaffe+mednafen (bumped fceux at same time too).
I'm more of a retroarch user myself so not 100% sure there's nothing I overlooked (I did moderately test about every systems that mednafen can emulate).
Nowadays most snes emulators are good though, so it mostly comes down to UI preference, availability, and other features... but let's forget zsnes and its genuine emulation bugs (I liked it back on my old k6 266mhz box, but well ) |
|
Back to top |
|
|
sdauth Guru
Joined: 19 Sep 2018 Posts: 568 Location: Ásgarðr
|
Posted: Thu May 13, 2021 2:28 pm Post subject: |
|
|
Ionen wrote: | I'm the one that did the latest bump for mednaffe+mednafen |
Nice, thank you ! mednafen has always been in my localrepo (I couldn't use the old stable because I've had uncompatibles saves from an other system) since I started using Gentoo in 2018 so it was good to finally remove it from localrepo
Well, I haven't tested it extensively with the new ebuild, I played an old save of MGS on PSX (Disc 2) yesterday though and encountered no issue so far. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|