summaryrefslogtreecommitdiff
path: root/run.sh
blob: fcee84b6090ab8b2732da282f4a2a563853b51e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

export EAGLE_DRIVER_PATH=/usr/lib64/dri

sudo pkill -f egl
sudo pkill -f Xwayland

if [ -e /dev/dri/card0 ]; then
        sudo sh -c "echo 0 > /sys/class/vtconsole/vtcon1/bind; /sbin/rmmod -f i915; /sbin/modprobe i915 modeset=1"
fi
sudo /sbin/modprobe i915 modeset=1

nohup sh -c "
sleep 2
sudo Xwayland -ac -wayland :0 &
export DISPLAY=:0
sleep 4
gnome-session
" > /dev/null &
sudo env EAGLE_DRIVER_PATH=$EAGLE_DRIVER_PATH ./wayland-system-compositor -i 'event[45]'
trap "" 2
wait