Monday, 23 September 2013

phpmp2 with credit support

- optimized for asus eeepc 900 small resolution (1024x600)
- auto add random song from DB if just one is in playlist and credit = 0
- /credit.php for +/-/check credit
- add file name (witouth extetion) if no ID3 tag in file

Complete source code on github.

for asus eeepc with ebay touchpad:

touchpad configuration:
avoid loading usbtouchscreen driver by adding this tu /etc/modprobe.d/blacklist.conf:

blacklist usbtouchscreen

add this to /usr/share/X11/xorg.conf.d/10-evdev.conf

Section "InputClass"
        Identifier "eGalaxy touchscreen"
        MatchVendor "eGalax"
        MatchIsTouchscreen "on"
        #Option "SwapAxes" "on"
        Option "InvertX" "on"
        Option "InvertY" "on"

apt-get install --no-install-recommeds openssh-server xserver-common  xserver-xorg xserver-xorg-core xserver-xorg-input-evdev xserver-xorg-video-intel xinit midori matchbox-window-manger php mpd alsa-utils

this install X, driver for intell graphics, input edev driver , minimalistik window manager matchbox, webkit based lightweight browser midori (firefox also work, but need addon for "fullscreen start" option, so midori is better), mpd  and alsa utils for "mixer". Also ssh server is good to have, for upload songs and change configuration.

configuring X:

disable cursor and "screensaver" by changing line in /etc/X11/xinit/xserverrc:

exec /usr/bin/X -nolisten tcp -nocursor -dpms -nolock -v -br "$@"

start window manager and midori /etc/X11/xinit/xinitrc:
 #. /etc/X11/Xsession
nice x-window-manager &
nice midori -e Fullscreen -a

start X by adding this to /etc/inittab in run level 2:

No comments:

Post a Comment