bookworm vs trixie discussion for mobian in pinephone regular.
#51
(03-12-2025, 04:43 PM)dragonhospital Wrote: friends; please  sudo apt install  stellarium  and run  stellarium  from terminal.   Does it start?       Please share output  of  terminal command   glxinfo

I will give Stellarrium a try but Orrery developed for Maemo mobile linux is very good.
https://github.com/kenyoung/orrery

Installed fine but errors out over all kinds of graphics stuff. It is too heavy I suggest trying to get Orrery to compile as it is optimized to a single core TI ARM chip form 2007.
  Reply
#52
biketool can you compile https://wiki.maemo.org/Gonvert ? need python2 to python3 port. Gonvert best unit converter for touch screen linux.
  Reply
#53
(04-08-2025, 04:51 PM)Kevin Kofler Wrote: That is because they (Debian trixie) upgraded their GTK to 4.18. You need a GTK patched with the patches from https://github.com/kkofler/gtk.

Thank you. When will this patch arrive in Trixie? I can't still take pictures.
  Reply
#54
Probably never. Someone needs to package it in a third-party repository.

The way to package this is:
1. clone https://github.com/kkofler/gtk
2. generate the patch: git diff 4.18.4..gtk-4-18-4-gl2 >gtk-4.18.4-gles2.patch
3. remove the 2 hunks that delete binary PNGs from the patch – the release tarball apparently has some PNG optimizer run on them, so they do not match the version in git and applying the patch fails
4. get the packaging sources for GTK 4 (version 4.18.4 if possible) for your distribution
5. add the patch to the package and make sure it gets applied (this varies from distribution to distribution)
6. after applying the patch, add another line to the build-time package scriptlets to manually delete the PNGs whose deletion was removed from the patch in 3: rm -f testsuite/gsk/compare/huge-height-hdr.png testsuite/gsk/compare/huge-width-hdr.png (though I think you will get away without doing that, the PNGs will just not be used)
7. build the modified package and upload it to a repository

I have done that for Fedora here: https://copr.fedorainfracloud.org/coprs/....18-gles2/

For Debian, see https://wiki.debian.org/Packaging for the distribution-specific packaging instructions (steps 4 to 7).
  Reply
#55
(04-25-2025, 08:21 PM)Kevin Kofler Wrote: Probably never. Someone needs to package it in a third-party repository.

The way to package this is:
1. clone https://github.com/kkofler/gtk
2. generate the patch: git diff 4.18.4..gtk-4-18-4-gl2 >gtk-4.18.4-gles2.patch
3. remove the 2 hunks that delete binary PNGs from the patch – the release tarball apparently has some PNG optimizer run on them, so they do not match the version in git and applying the patch fails
4. get the packaging sources for GTK 4 (version 4.18.4 if possible) for your distribution
5. add the patch to the package and make sure it gets applied (this varies from distribution to distribution)
6. after applying the patch, add another line to the build-time package scriptlets to manually delete the PNGs whose deletion was removed from the patch in 3: rm -f testsuite/gsk/compare/huge-height-hdr.png testsuite/gsk/compare/huge-width-hdr.png (though I think you will get away without doing that, the PNGs will just not be used)
7. build the modified package and upload it to a repository

I have done that for Fedora here: https://copr.fedorainfracloud.org/coprs/....18-gles2/

For Debian, see https://wiki.debian.org/Packaging for the distribution-specific packaging instructions (steps 4 to 7).

Maybe there's something I don't understand. Could Megapixels use the GSK renderer based on Vulkan to solve this problem?
  Reply
#56
Hello

I've just removed Megapixels and installed both Gnome Snapshot and Gnome Decoder (with sudo apt install, no flatpak) which seem to work.
  Reply
#57
The GPU driver on the PinePhone supports neither OpenGL ES 3 nor Vulkan, so GTK 4.18 supports it only with software rendering. That does not initialize an OpenGL context, so Megapixels, which uses OpenGL, does not work. (Other GTK applications will usually work, but be painfully slow.) So you need a GTK patched to support OpenGL ES 2.

All the code is out there in my GTK fork, you just need to compile and/or package it.
  Reply
#58
Exclamation 
(04-28-2025, 04:00 PM)Kevin Kofler Wrote: The GPU driver on the PinePhone supports neither OpenGL ES 3 nor Vulkan, so GTK 4.18 supports it only with software rendering. That does not initialize an OpenGL context, so Megapixels, which uses OpenGL, does not work. (Other GTK applications will usually work, but be painfully slow.) So you need a GTK patched to support OpenGL ES 2.

All the code is out there in my GTK fork, you just need to compile and/or package it.

I confirm that some GTK applications (Snapshot, maybe Decoder too) are painfully slow.

Does your patch have a chance to get accepted by Mobian maintainers if someone adapt it for this distro? I'm looking for a solution on the long term.
  Reply
#59
You can try to get it into Mobian, but politics are likely to get in the way: Mobian does not like carrying downstream packages that are not in Debian upstream, and Debian does not like carrying downstream patches that are not in the software's upstream, in this case GTK upstream. There are exceptions, but it will be hard to argue (and I would not be surprised either if Mobian and Debian were to attempt to fingerpoint you back and forth to each other, as often happens in this kind of situation). And GTK upstream will obviously not accept a patchset that does little more than reverting 33 of their commits to reverse a decision they made deliberately.

I think putting up a third-party repository (a PPA as the Ubuntu folks would call it) is the most effective solution to get this out to all users quickly without wasting time arguing with people. But I need someone with Debian packaging experience, or at least a Debian/Mobian user willing to learn Debian packaging, to do that for Debian/Mobian.
  Reply
#60
Exclamation 
Hello

The bluetooth works anew, I've just updated and upgraded Smile

P.S: The text is in English instead of in my mother tongue (which isn't English obvously) when I have to enter my PIN code. It's not a big deal.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Vivaldi Web browser nearly native for Mobian biketool 3 276 05-06-2025, 02:19 AM
Last Post: biketool
  troubleshooting sleep/wake button on trixie biketool 5 450 05-04-2025, 08:11 PM
Last Post: Kevin Kofler
  mobian calamares fail merom 2 415 04-29-2025, 02:10 PM
Last Post: mdk
  New camera app gnome-snapshot working on trixie? vusra 4 572 04-11-2025, 02:53 AM
Last Post: vusra
  Pinephone seems tobe using 4G data instead of Wifi data grump_fiddle_reinstall 7 2,172 02-20-2025, 02:47 PM
Last Post: puffchumpy
  mobian phosh on screen keyboard not popping up for Chromium/Electron apps grump_fiddle_reinstall 1 569 01-15-2025, 08:08 PM
Last Post: Kevin Kofler
  How to use QR codes on Mobian Sid(unstable) Pinephone Pro biketool 1 501 01-02-2025, 12:47 PM
Last Post: zetabeta
  Upgrade to Mobian (Trixie) Staging biketool 13 2,390 12-29-2024, 10:35 AM
Last Post: biketool
  Mobian Bulleyes aberrio 0 695 12-16-2024, 08:27 AM
Last Post: aberrio
  Mobian, Suspend, and Audio Playback biketool 0 617 12-11-2024, 12:56 AM
Last Post: biketool

Forum Jump:


Users browsing this thread: 1 Guest(s)