Raspberry Pi Forums » Debian
15 FOLLOWERS
This section is where you talk anything and everything Debian. Get expert advice on issues with the GUI of Raspberry Pi, discover threads that guide you through the installation process, and learn how to publish or upload the Debian package here.
Raspberry Pi Forums » Debian
1M ago
OK, no crashes since the last update (kernel updated to 6.6.20+rpt-rpi-2712). Fixed maybe?
Statistics: Posted by RHeller — Sat Mar 16, 2024 8:05 pm ..read more
Raspberry Pi Forums » Debian
1M ago
I did a full update, but it did it again today.
Statistics: Posted by RHeller — Mon Mar 11, 2024 8:30 pm ..read more
Raspberry Pi Forums » Debian
1M ago
I have a fairly new Raspberry Pi 5 w/4G ram that from time to time Xorg crashes with a "kernel: Unable to handle kernel paging request at virtual address " message. The Xorg process goes zombie and the screen "freezes". The system is actually still running, but X11 is not responsive (Duh!). I can slogin from another machine, but the only way to cure things is to reboot -- I'm guessing the GPU is in nowhere land.
I don't know if this is a hardware problem (broken GPU) or a software problem (broken GPU related kernel problem). There are two HDMI ports and I am only using 1 -- I suppose I can sw ..read more
Raspberry Pi Forums » Debian
1M ago
As it says on the Anydesk site "Only Raspbian/Raspberry Pi OS (32 bit) are supported. Raspberry Pi OS 11 "Bullseye" and newer are not yet supported."
Statistics: Posted by neilgl — Tue Mar 05, 2024 11:29 am ..read more
Raspberry Pi Forums » Debian
1M ago
I do not think you are doing anything wrong.
GTK4 puts non-fullscreeen windows on the display from which the App was started. Only fullscreen windows can be assigned to a particular display. It is not even possible to trick GTK by fulscreening and then unfulscrening.
Uncommenting the lines in the attached will show this.
In Pi Presents I am happy for the second of two or both windows to be fullscreened so this situation suits me.
Code:
import gigi.require_version('Gtk', '4.0')from gi.repository import Gtk, Gdk, GLibclass TwoWindow(): def __init__(self): self.app = Gtk.Applicatio ..read more
Raspberry Pi Forums » Debian
1M ago
Yes, of course you are right, I have already corrected my mistake.
Your example works fine. I just can't use it for my task.
Using Your example and documentation Gtk, I created such code:
Code:
import gigi.require_version('Gtk', '4.0')from gi.repository import Gtk, Gdk, GLibclass AppWindow(Gtk.ApplicationWindow):def __init__(self, app):super(AppWindow, self).__init__(application=app)self.display_info()def display_info(self):display = Gdk.Display.get_default()print ('Display name: ',display.get_name())monitors=display.get_monitors()for m in monitors:connector=m.get_connector()geometry = m.ge ..read more
Raspberry Pi Forums » Debian
2M ago
gtk4 not gtk3
Install you need is:
libgtk-4-dev
and import:
import gi
gi.require_version("Gtk", "4.0")
from gi.repository import Gtk,Gdk,GLib
Statistics: Posted by KenT2 — Mon Feb 26, 2024 7:59 pm ..read more
Raspberry Pi Forums » Debian
2M ago
The solution you gave me doesn't work in python, I get the error:
AttributeError: 'GdkWaylandDisplay' object has no attribute 'get_monitors'. Did you mean: 'get_monitor'?
Code:
import gigi.require_version('Gtk', '3.0')from gi.repository import Gtk, Gdkdef display_info():display = Gdk.Display.get_default()print ('Display name: ',display.get_name())monitors=display.get_monitors() #AttributeError: 'GdkWaylandDisplay' object has no attribute 'get_monitors'. Did you mean: 'get_monitor'?for m in monitors:connector=m.get_connector()geometry = m.get_geometry()x = geometry.xy = geometry.ywidth=geome ..read more
Raspberry Pi Forums » Debian
2M ago
I assume by New Debian you mean RPi OS Bookworm
You can do it in Tk provided you switch from Wayland to X11.
To do it in Tkinter is a bit of a bodge. Tk sees the two monitors as a single desktop. You have to position the window for the second monitor at
x=monitor1_width.
You can do it in GTK4. GTK4 treats each monitor as a desktop which is just what I wanted for Pi Presents. This works on Wayland and X11
I use 32 bit but I don't see why it should be different fr 64 bit.
Code:
def display_info(self): display = Gdk.Display.get_default() print ('Display name: ',display.get_name ..read more
Raspberry Pi Forums » Debian
2M ago
Hello everyone, I'm having trouble creating a window on the second screen programmatically. I have already tried tk, qt5, py-game and there is no way I can illuminate the window on a screen other than the console from which the program is launched.
I am using the latest 64 bit system for RP 4B (Debian Bookworm 64 bit).
The problem only occurs with the new Debian Bookworm 64 bit.
Statistics: Posted by CountRight — Fri Feb 23, 2024 4:31 pm ..read more