bpennypacker / phad

Pi-Hole Alternate Display
GNU General Public License v3.0
75 stars 8 forks source link

Warning: Moudle evdev not found. Touch screen support is disabled. #20

Closed Andymc1280 closed 3 years ago

Andymc1280 commented 3 years ago

Get the above recurring error on my screen

The screen is working and installed. Distro is DietPi (raspbian based)

/root/bashrc looks like this:

Start phad

if [ "$TERM" == "linux" ] ; then cd /root/phad while : do ./phad -s 20 2>/dev/null sleep 10 done

Used the bash phad-simple-install.sh command as per instructions.

Its probably me, what am I missing?

EDIT:-When I try to install I get :

xserver-xorg-input-evdev is already the newest version (1:2.10.6-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

bpennypacker commented 3 years ago

That warning message is actually something you can safely ignore if it's not bothering you. I just realized that I should have some way of suppressing it as it may not matter to some folks. Currently the program will always print that out if it can't load the evdev module which is used to respond to touchscreen events. Are you using a touchscreen or are you just running phad in a terminal or an external display?

Andymc1280 commented 3 years ago

Yes I'm using external hdmi.

It's a waveshare 5 inch lad touchscreen 20210218_021623

Don't have touch enabled in driver but evdev is installed and is latest. All dependencies are met.

To be honest I'm not bothered about touch at the moment, I can't see any phad screens. I have had the same setup working 100% with the PADD app.... soo.

bpennypacker commented 3 years ago

This should be fixed now. I'd suggest just downloading the phad script itself and not running the install script again.

You may also want to edit phad.conf and remove the blank.j2 entry from the templates line if it's there. There was a bug in the install script that might have included it when you don't really want it. If it's there then your screen will go blank each time phad cycles through all the display pages.

Andymc1280 commented 3 years ago

20210227_234933.jpg

All works.

Need to change things about to make it fill the screen better, also want to add stats from unbound on the main screen but otherwise yay 🤗

bpennypacker commented 3 years ago

Great, thanks for the quick confirmation of the fix.

I've been tossing around the idea of adding the ability to import data from arbitrary things like unbound (I don't use it myself) but haven't figured out a good way of doing it yet. What I'm thinking might be reasonable is a section of the conf file where you can specify arbitrary commands and the results are imported into phad as data that can be used in the templates. If you have any thoughts/suggestions/etc. about that I'd love to hear it.

Andymc1280 commented 3 years ago

This guy has done Unbound for his original PADD install.

https://giuliomagnifico.medium.com/pi-hole-unbound-on-a-raspberry-pi-4b-with-a-pimoroni-hyperpixel-4-padd-stats-b424a758d828

https://giuliomagnifico.medium.com/add-unbound-stats-to-padd-for-pi-hole-38b2ea87db2b

I'm no expert, you may be able to incorporate this in Phad.

bpennypacker commented 3 years ago

Thanks for the pointers. I'll definitely take a look at those.