Post by Rick MurrayThe way I use is to look for something specific in the OS for the
machine I want to check - so for a RaspberryPi, I'd ask OS_Module to
look up "BCMVideo". If it exists, it's a Pi. If it doesn't, it is
not. And if some future Pi revision doesn't have that module, the
machine is probably therefore different enough that it can be counted
as something else.
So Rick has now finally definitively answered your question posed at the
start of this thread.
So you can now get your program to throw up its hands and say "This is NOT
a Raspberry Pi, you nitwit!" and fail gracefully if anyone is foolish
enough to expect it to do something useful on a non-RPi machine.
Now I can see what your program is intending to do, I can possibly be more
helpful with some configuration options.
For example, as I take my Pi abroad where I don't have a HDMI monitor but
use a VGA adapter on the monitor I keep there, I can point out that, to
change the audio from HDMI to 3.5mm jack output, the line to add, or in
this case uncomment, is, from my own master CONFIG.TXT file:
#
# AUDIO
# This line =1 pretends all audio formats are unsupported by the display.
# This means ALSA will default to analogue, sound out via headphone socket.
# hdmi_ignore_edid_audio=1
#
This has changed from earlier where a different method was recommended, but
no longer works.
Also you might have missed the apparently-undocumented monitor sleep-mode
option briefly chronicled in the forum thread cited in the REMark:
#
# Undocumented blanking option for DPMS - puts HD monitor into sleep mode
# https://www.riscosopen.org/forum/forums/2/topics/6788
hdmi_blanking=1
#
I also include the screen rotation commands myself, tho' I haven't used
them in anger yet:
#
# Rotate values: 0, normal; 1, 90°; 2, 180°; 3, 270°;
# 0x10000, horizontal flip; 0x20000, vertical flip
display_rotate=0
#
I keep them in just to save having to look them up should I find I need
them.
Is this sort of thing helpful? I have attempted to e-mail you privately on
a related matter.
John
--
John Williams, now back in the UK - no attachments to these addresses!
Non-RISC OS posters change user to johnrwilliams or put 'risc' in subject!
Who is John Williams? http://petit.four.free.fr/picindex/author/