Making JELOS run a bit better on portable computers.
This commit is contained in:
parent
304ee307b3
commit
877635cdf9
8 changed files with 21 additions and 26 deletions
|
@ -19,5 +19,5 @@ Analog limiter = 1-60
|
|||
RapidFire = 1-59
|
||||
Fast-forward = 1-61
|
||||
SpeedToggle = 1-68
|
||||
Pause = 1-111,10-106,10-107
|
||||
Pause = 1-111,10-107
|
||||
Rewind = 1-67
|
||||
|
|
|
@ -10,8 +10,8 @@ pcm.dmixer {
|
|||
pcm "hw:0,0"
|
||||
period_time 0
|
||||
period_size 1024
|
||||
buffer_size 4096
|
||||
rate 44100
|
||||
buffer_size 8192
|
||||
rate 176400
|
||||
}
|
||||
bindings {
|
||||
0 0
|
|
@ -136,13 +136,6 @@ EOF
|
|||
### Fix and migrate to autostart package
|
||||
enable_service jelos-autostart.service
|
||||
|
||||
if [ -d "${PKG_DIR}/sources/asound/${DEVICE}" ]
|
||||
then
|
||||
cp ${PKG_DIR}/sources/asound/${DEVICE}/* ${INSTALL}/usr/config/
|
||||
fi
|
||||
|
||||
cp ${PKG_DIR}/sources/asound/asound.conf.bluealsa ${INSTALL}/usr/config/
|
||||
|
||||
sed -i "s#@DEVICENAME@#${DEVICE}#g" ${INSTALL}/usr/config/system/configs/system.cfg
|
||||
|
||||
if [[ "${DEVICE}" =~ handheld ]]
|
||||
|
|
|
@ -102,7 +102,7 @@ then
|
|||
fi
|
||||
if [ "${DEVICE_HAS_FAN}" = "true" ]
|
||||
then
|
||||
FANSPEED=$(cat ${DEVICE_PWM_FAN})
|
||||
FANSPEED=$(cat ${DEVICE_PWM_FAN} 2>/dev/null)
|
||||
if [ "${FANSPEED}" = "0" ]
|
||||
then
|
||||
FANSPEED="OFF"
|
||||
|
|
|
@ -193,7 +193,7 @@ post_makeinstall_target() {
|
|||
sed -e "s,^.*SystemMaxUse=.*$,SystemMaxUse=10M,g" -i ${INSTALL}/etc/systemd/journald.conf
|
||||
|
||||
# tune logind.conf
|
||||
sed -e "s,^.*HandleLidSwitch=.*$,HandleLidSwitch=ignore,g" -i $INSTALL/etc/systemd/logind.conf
|
||||
sed -e "s,^.*HandleLidSwitch=.*$,HandleLidSwitch=suspend,g" -i $INSTALL/etc/systemd/logind.conf
|
||||
sed -e "s,^.*HandlePowerKey=.*$,HandlePowerKey=suspend,g" -i $INSTALL/etc/systemd/logind.conf
|
||||
|
||||
# replace systemd-machine-id-setup with ours
|
||||
|
|
|
@ -1,19 +1,5 @@
|
|||
<?xml version="1.0"?>
|
||||
<inputList>
|
||||
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
|
||||
<input name="up" type="key" id="1073741906" value="1" />
|
||||
<input name="down" type="key" id="1073741905" value="1" />
|
||||
<input name="left" type="key" id="1073741904" value="1" />
|
||||
<input name="right" type="key" id="1073741903" value="1" />
|
||||
<input name="a" type="key" id="27" value="1" />
|
||||
<input name="b" type="key" id="13" value="1" />
|
||||
<input name="pagedown" type="key" id="34" value="1" />
|
||||
<input name="pageup" type="key" id="33" value="1" />
|
||||
<input name="select" type="key" id="8" value="1" />
|
||||
<input name="start" type="key" id="32" value="1" />
|
||||
<input name="x" type="key" id="61" value="1" />
|
||||
<input name="y" type="key" id="45" value="1" />
|
||||
</inputConfig>
|
||||
<inputConfig type="joystick" deviceName="Xbox 360 Controller" deviceGUID="030000005e0400008e02000010010000">
|
||||
<input name="a" type="button" id="1" value="1" />
|
||||
<input name="b" type="button" id="0" value="1" />
|
||||
|
@ -1083,4 +1069,19 @@
|
|||
<input name="start" type="button" id="2" value="1" />
|
||||
<input name="up" type="hat" id="0" value="1" />
|
||||
</inputConfig>
|
||||
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
|
||||
<input name="a" type="key" id="120" value="1" />
|
||||
<input name="b" type="key" id="122" value="1" />
|
||||
<input name="down" type="key" id="1073741905" value="1" />
|
||||
<input name="hotkeyenable" type="key" id="1073742053" value="1" />
|
||||
<input name="left" type="key" id="1073741904" value="1" />
|
||||
<input name="leftshoulder" type="key" id="113" value="1" />
|
||||
<input name="right" type="key" id="1073741903" value="1" />
|
||||
<input name="rightshoulder" type="key" id="119" value="1" />
|
||||
<input name="select" type="key" id="1073742053" value="1" />
|
||||
<input name="start" type="key" id="13" value="1" />
|
||||
<input name="up" type="key" id="1073741906" value="1" />
|
||||
<input name="x" type="key" id="115" value="1" />
|
||||
<input name="y" type="key" id="97" value="1" />
|
||||
</inputConfig>
|
||||
</inputList>
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
<int name="ScreenSaverTime" value="180000" />
|
||||
<int name="recent.sort" value="7" />
|
||||
<string name="AudioCard" value="default" />
|
||||
<string name="AudioDevice" value="Master" />
|
||||
<string name="CollectionSystemsAuto" value="favorites, recent" />
|
||||
<string name="CollectionSystemsCustom" value="" />
|
||||
<string name="DefaultGridSize" value="" />
|
||||
|
|
Loading…
Reference in a new issue