Posts
1747
Following
90
Followers
165
Riding horses, hacking computers, phones and smartwatch.
Modra neni dobra, modra je kriterium

Kdysi jsem vyrazil ke zlutakovi v modrym cyklodresu. Nenechal na sebe sahnout, pohyboval se tak, aby byl centimetr od moji ruky. Musel jsem se jit prevlict.

Dneska jsem k nemu vyrazil v modry (nepromokavy) bunde. Jako jo. Na zavolani prisel, jen velmi, velmi, velmi opatrne. Mrkev si vzal a nasledoval me, ale dal dost jasne najevo ze ven z vybehu se mnou nepujde. Proste se choval jako pred rokem? lety? Pry me nezna a nikam se mnou nejde. Zda se, ze modra je kriterum.
0
0
0
Trump je placeny a/nebo vydirany Putinem.

Trump is paid and/or extorted by Putin.
25% Ano / Yes
50% Ano a za 10 let to bude obecne uznavane / Yes and it will be common knowledge in 10 years
25% No
2
2
0

Pavel Machek

Jak uklidnit povercivou pribuznou

(telefonni hovor) "Neboj, zadna tma nebude, co je to za nesmysl? Svetlo nemuze jen tak zmizet."

(jako kdyby mluvil k nekomu jinemu) "Belial!"

(pauza)"Fakt planujete nejaky zatmeni pristi ctvrtek? Jakyho c****a to napadlo?"

"Ta k**va bohorodna. Ne, to nepujde, mam rande a taky je koncert Zombiero Martin."

"Jak ze to nemuzes zrusit?"

(chvili pauza, pak temnym, autoritativnim hlasem) "Lorem ipsum dolor sit amet,
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua.

(zase do telefonu) "Ne teticko, nepotrebujes svecenou svicku, prece bys neverila na nesmysly."

(spis pro sebe) "A taky jsem to zaridil."

[A kdybyste chteli vedet "ktera sekta", tak pry se to siri mezi katolickyma oveckama.]
1
0
0
#phonecamera #linuxphone #librem5

Librem 5 camera/kernel can do three possible resolutions, ~1024x768 @ ~24fps, ~2048x.. @ ~31 fps and ~4096x.. @ ~15fps. Debayering is actually easier and better quality if we downscale at the same time, and that allows best framerate, so we do that (2048x.. resolution).

ARM has problems with cache coherency w.r.t. DMA, and kernel solution is to simply disable cache on DMAbufs for userspace, which means accessing video data is 10x slower than it should be on the CPU. Which means debayering on GPU is attractive, and that's what we do. (gold.frag). GPU can do more image signal processing functions easily, too, so we do some of that.

Unfortunately, we hit the same uncached memory problem at the GPU output. So we use separate thread to copy. All this unfortunately does not fit on one core, so we need two threads, one controlling GPU debayer on frame n+1, while the other one copies video data from frame n. (heart.c). We save resulting RGBA data to ramdisk. This all costs maybe 80% of one core.

From there, Python scripts can pick them up: ucam.py displaying the viewfinder and mpegize.py handling the video encoding via gstreamer. There's basically 0% cpu left, but I can encode ~1024x.. video. Unfortunately that's without audio and with viewfinder at 1fps. Plus, combination of C + Python is great for prototyping, but may not be that great for performance.

Code is here: https://gitlab.com/tui/tui/-/tree/master/icam?ref_type=heads .

At this point I'd like viewfinder functionality merged into the rest of GPU processing. Ideally, I'd like to have a bitmap with GUI elements, combine it with scaled RGBA data, and rendering it to screen. I know SDL and Gtk, SDL looked like better match, but I could not get SDL and GPU debayering to work in single process (template SDL code is here https://gitlab.com/tui/debayer-gpu/-/blob/master/sdl/main.c?ref_type=heads ).

If you can integrate main.c and heart.c, that would be welcome. If you have example code that combines SDL with processing on GPU, that would be nice, too. If you know someone who can do GPU/SDL, boost would not be bad, I guess.

@datenwolf
@NekoCWD
@dcz
@martijnbraam
3
4
7
Tak hnusny pocasi ze i holuby chodej pesky

Vyjizdku jsme stihli, ale ted se venku zacinaj dit nepekny veci. Vypada to na bourku a neprijenou. A koukam, na strese boxu sedi holub, a vypada min plachej nez obvykle. A taky ze jo, na nohach krouzky. "Kamo, let radej jinam, tady je to sama kocka..."
0
0
1
Wargame podcast -- je na yt, "False Flag | The Wargame Ep 1 [9LEbjMAkU4I]", protrpel jsem za vas, abyste vy nemuseli. 5 hodin dramatu, kde rusove prekroci hranici pro atomovou odvetu v prvnim kroku, a vedeni UK je tak nekompetentni, ze neodpovi. To, ze se v poslednich 10ti minutach dozvime, ze by to takhle proste byt nemohlo, to nezachrani.

Wargame podcast -- ignore it. Not nearly realistic, not worth watching.
0
0
1
Subject: Sasha Levin is halucinating, non human entity, has no ethics and no memory

Hi!

So... I'm afraid subject is pretty accurate. I assume there's actual human being called "Sasha Levin" somewhere, but I interact with him via email, and while some interactions may be by human, some are written by LLM but not clearly marked as such.

And that's not okay -- because LLMs lie, have no ethics, and no memory, so there's no point arguing with them. Its just wasting everyone's time. People are not very thrilled by 'Markus Elfring' on the lists, as he seems to ignore feedback, but at least that's actual human, not a damn LLM that interacts as human but then ignores everything.

Do we need bot rules on the list?

Oh, and if you find my email offensive, feel free to ask LLM to change the tone.

Best regards,
Pavel
1
0
1
@NekoCWD Hi! libcamera people told me you are working on autofocus for libcamera. I got that to work with great hacks at Librem 5 at one point: https://lists.libcamera.org/pipermail/libcamera-devel/2025-April/049734.html . Is your code public somewhere? What hardware are you using?
1
0
0
How to install librem5 without an installer?

root@pureos:~# mount / -oremount,ro
mount: /: mount point is busy.
root@pureos:~# echo u > /proc/sysrq-trigger
root@pureos:~# mkdir /bar
mkdir: cannot create directory ‘/bar’: Read-only file system
root@pureos:~# cat /dev/sda > /dev/mmcblk0
root@pureos:~# sync
bash: /usr/bin/sync: cannot execute binary file: Exec format error
root@pureos:~#
1
0
0
Hey, world. I need Mobian installer for Librem 5, but the directory where it should be is empty. What is going on?
0
0
1
https://www.seznamzpravy.cz/clanek/zahranicni-trump-mluvil-se-zelenskym-o-jeho-malem-problemu-summit-nato-2025-280240

Ještě pár dní před summitem nebylo jasné, zda ukrajinský prezident Volodymyr Zelenskyj vůbec přijede. Bez jistoty, že si na něj americký prezident Donald Trump najde čas, totiž cesta nedávala smysl. V podobné situaci se ocitl i na začátku měsíce, kdy kvůli G7 letěl do Kanady – jen aby zjistil, že Trump ze summitu odjíždí dřív, než k setkání dojde.

Tentokrát bývalý prezident USA oznámil možné setkání jen neurčitě – během ranního letu na palubě Air Force One, který mířil do Nizozemska.

Byvaly prezident USA? Uniklo mi neco duleziteho? :-)
0
0
0
Zlutymu zachutnal nejakej plevel, tak se promenil v horskou kozu.
0
0
3
Computer not fast enough? Do if(!fork()) and you have two computers! :-)
0
0
0
I believe I have 1024x768 recording on Librem 5. Will it last?
0
0
1
Hi!

I asked for help with ISP...

Can you program GPUs and do you want to become a HERO? #linuxphone
community needs your help.

[...]

and I got help. Both from humans and from language models. Quickly it
turned out Librem 5's GPU is fast enough for debayering at 24fps,
0.8MP and data can be transfered enough fast enough. Soon, it turned
GPU can use full 13MP image as a source, scaling it down to 0.2MP for
gstreamer mp4 recording.

This opens possibility to do phase-detection AF and digital
zoom. Librem 5 is not fast machine, its CPU/GPU/RAM is slower than
Thinkpad X220, for example.

Then I set out to investigate "how much of an ISP can I do" and it
turned out I did not yet find a limit.

So far I did black level, some attempt at denoise, three matrix
multiplies and gamma correction. (CPU could do black level + gamma +
one matrix multiply, almost, if I did vector instructions and a lot of
care). I don't know how much my GPU is loaded, but at the moment I
believe ISP on the GPU is the way to go.

Yes, I'm doing simpler debayer than usual, through not as simple as
explained below. I believe that's right choice when 13MP image is
available.

Code is at
https://gitlab.com/tui/tui/-/tree/master/icam?ref_type=heads . It has
some pretty rough edges. But get Librem 5, it is worth it :-).

Special thanks to @dos Sebastian Krzyszkowiak and @datenwolf.

Best regards,
Pavel
0
0
2
Mam tu lahvicku s napisem "sampon", dvema jednorozci a dvema srdicky. A otazka je -- je ten sampon pro me nebo pro zlutaka? 🙂.
0
0
0
Ty kupy mrtvych civlistu v Gaze zacinaji byt tak velke, ze "smrt IDF" se pomalu presouva z kategorie "hnusny extremismus" smerem ke kategorii "vlastne docela rozumny pozadavek na zastaveni genocidy" :-(.

Billy Bragg (snip)
Anyone unable to understand why thousands of people joined Bob Vylan in chanting ‘Death, Death to the IDF’ at Glastonbury should read the article below. (snip)

theguardian.com
Israeli military used 500lb bomb in strike on Gaza cafe, fragments reveal
0
0
1
OnePlus 6 ma tri fotaky, 2 vzadu a jeden selfie. #oneplus6 #linuxphone #oneplus6t Ty dva vzadu maji dost podobny parametry, jeden z nich na mainlinu funguje, druhy bohuzel ne, selfie funguje taky; tak proc neni podpora v Megapixels a internet plny fotek? No, protoze ten co funguje je makro kamerka ktera neumi fotit na dalku. Aha. Zahada vyresena.

OnePlus 6 has three cameras – two on the back and one selfie camera.
#oneplus6 #linuxphone #oneplus6t
The two rear cameras have quite similar specs. One of them works on mainline, the other unfortunately doesn't. The selfie camera works too.
So why isn't there support in Megapixels and why isn't the internet full of photos?
Well, because the one that works is the macro camera, which can't focus at a distance.
Ah. Mystery solved.
0
0
1
Opravuju ADSL modem... ten, co to schytal pri bource. Zatim jsem na opravu pouzil kondenzator z GME.cz (jeste jednou diky za trpelivost!), a papirovou karticku. Nechtelo se mi pajet, takze kondenzator je nasazen na nozicky toho vybuchleho. A ja bych mel brat sazky: Bude to fungovat?
0
0
2
I, once again, believe that GPU on Librem 5 can be useful for debayering. #librem5 #linuxphone https://gitlab.com/tui/debayer-gpu/-/tree/master/bwtest?ref_type=heads
0
0
1
Show older