Difference between revisions of "Linux games"
Line 65: | Line 65: | ||
− | From now on your wine can use pulseaudio. You need to create a configuration file: | + | From now on your wine can use pulseaudio with ALSA. :-) |
+ | |||
+ | |||
+ | |||
+ | ALSA configuration. You need to create a configuration file: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
vim ~/.asoundrc | vim ~/.asoundrc | ||
Line 114: | Line 118: | ||
+ | Adjust the wine shortcut settings | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | vim ~/Desktop/Diablo\ III.desktop | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | <syntaxhighlight lang="apache"> | ||
+ | # ALSA_DEFAULT_PCM="plug:dmix" ==> sound bug fix | ||
+ | # setarch i386 -3 ==> ATI graphic bug fix | ||
+ | Exec=setarch i386 -3 /usr/share/playonlinux/playonlinux --run "Diablo III" %F | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | |||
+ | '''alternate sound solution''' | ||
+ | |||
+ | The following solution is also mentioned a number of times and seems to work. | ||
+ | |||
+ | Edit the pulseaudio configuration | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | /etc/pulse/daemon.conf | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Adjust the fragment size | ||
+ | <syntaxhighlight lang="apache"> | ||
+ | default-fragment-size-msec = 5 | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | Sources: | ||
+ | * https://www.reddit.com/r/linux_gaming/comments/22wewb/wine_162_sound_issues_plays_extremely_quickly/ | ||
+ | * http://wiki.winehq.org/WineAndPulseaudio | ||
+ | * https://bbs.archlinux.org/viewtopic.php?id=177979&p=2 | ||
Revision as of 09:46, 30 August 2015
On-line gaming
Commercial games
Diablo3
requirement
You need to open some specific ports to play Diablo3.
- Blizzard official doc: https://us.battle.net/support/en/article/firewall-proxy-router-and-port-configuration
- Firewall configuration
installation
Very good tutorial: http://www.sysads.co.uk/2014/08/install-diablo-3-on-ubuntu-14-04/
graphic fix (ATI)
http://workinginavirtualspace.blogspot.com/2014/05/playonlinux-and-diablo-3-ros-get-past.html
Sound fix
If your sound is cracky or if you don't have any sound...
sudo vim /etc/pulse/default.pa
1. Comment the following lines if they are not already commented:
## Ensure following lines are commented
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
## Comment the following block
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev support)
load-module module-detect
.endif
2. Use the following configuration instead
## Wine hook
load-module module-alsa-sink device=dmix
load-module module-alsa-source device=dsnoop
# Automatically load the correct driver
load-module module-udev-detect
From now on your wine can use pulseaudio with ALSA. :-)
ALSA configuration. You need to create a configuration file:
vim ~/.asoundrc
Put the following content:
pcm.!default {
@func refer
name { @func concat
strings [ "pcm."
{ @func getenv
vars [ ALSA_DEFAULT_PCM ]
default "pulse"
}
]
}
}
ctl.!default {
@func refer
name { @func concat
strings [ "ctl."
{ @func getenv
vars [ ALSA_DEFAULT_CTL
ALSA_DEFAULT_PCM
]
default "pulse"
}
]
}
}
Restart pulseaudio
pulseaudio -k
pulseaudio --start
- Test your system sound (= play a music track)
- Test wine sound:
ALSA_DEFAULT_PCM="plug:dmix" winecfg
- Go to the Audio tab, click "Test Sound"
- If you hear the sound, and see messages like "The dmix plugin supports only playback stream", it's working.
Adjust the wine shortcut settings
vim ~/Desktop/Diablo\ III.desktop
# ALSA_DEFAULT_PCM="plug:dmix" ==> sound bug fix
# setarch i386 -3 ==> ATI graphic bug fix
Exec=setarch i386 -3 /usr/share/playonlinux/playonlinux --run "Diablo III" %F
alternate sound solution
The following solution is also mentioned a number of times and seems to work.
Edit the pulseaudio configuration
/etc/pulse/daemon.conf
Adjust the fragment size
default-fragment-size-msec = 5
Sources:
- https://www.reddit.com/r/linux_gaming/comments/22wewb/wine_162_sound_issues_plays_extremely_quickly/
- http://wiki.winehq.org/WineAndPulseaudio
- https://bbs.archlinux.org/viewtopic.php?id=177979&p=2
Open source games
Linux has some very good games too !
- 0AD : Open-Source Age of Empires with much, much better graphics! See http://play0ad.com/
- OpenRA : Open-Source Red Alert Command & Conquer. See http://www.openra.net/
- Xonotic : really good FPS. http://www.xonotic.org/