psieg / Lightpack

Lightpack and Prismatik open repository
GNU General Public License v3.0
1.59k stars 190 forks source link

Apple Silicon. #406

Open PatricioooAG opened 4 years ago

PatricioooAG commented 4 years ago

Hello, Im Patricio and Im using this app in MacOS, its perfect. And ¿ Is in the way a Silicon update ? Thanks so much.

zomfg commented 4 years ago

well they brag about how fast Rosetta 2 is, so you'll have that the project compiles on random arm64 chip, so there's that, no idea if and how it runs we'll see

PatricioooAG commented 3 years ago

Sure. Sorry. You know. Was only a wish. I appreciate too much the app.

melgu commented 3 years ago

At least on my M1 Mac mini, Prismatik immediately crashes after launch.

/Applications/Prismatik.app/Contents/MacOS/main.conf
Unportable version
Application directory: /Users/melvin/.Prismatik
[1]    1228 illegal hardware instruction  /Applications/Prismatik.app/Contents/MacOS/Prismatik
zomfg commented 3 years ago

Here's an apple arm64 build (non-universal, arm only), no clue if runs and FYI:

so short term does not look good also can you run sysctl -a | grep -F hw.opt in a terminal

melgu commented 3 years ago

That build works (after manually removing the quarantine attribute). Thanks! Looking forward to the official release 👍

Here's the output, if you still need it:

hw.optional.floatingpoint: 1
hw.optional.watchpoint: 4
hw.optional.breakpoint: 6
hw.optional.neon: 1
hw.optional.neon_hpfp: 1
hw.optional.neon_fp16: 1
hw.optional.armv8_1_atomics: 1
hw.optional.armv8_crc32: 1
hw.optional.armv8_2_fhm: 1
hw.optional.armv8_2_sha512: 1
hw.optional.armv8_2_sha3: 1
hw.optional.amx_version: 2
hw.optional.ucnormal_mem: 1
hw.optional.arm64: 1
PatricioooAG commented 3 years ago

Sorry my English isn't enough. I do the installs of the release here in Mac mini m1. The app is working, but the led Adalight don't work. I don't know where is the problem. I have qt 5.15.2 in Homebrew. Thanks so much. Sorry.

Edit: I change again the USB port, and now is working perfect. Thanks so much. ¡ WoW !

zomfg commented 3 years ago

could you try this universal app

also how's the CPU usage on M1 compared to your old ones?

PatricioooAG commented 3 years ago

With the other : Mood lamp 1.8% Grabber 50ms 18% With this one: Mood lamp 2.1% Grabber 50ms 35% ( this one is better with the grabbing but no perferct, i dont know if is my config problem ) My screen is 1152p retina 2160p.

zomfg commented 3 years ago

"the other" you mean cpu or the build? I meant M1 vs Intel otherwise both builds should run the same, unless universal binaries are somehow worse in this case (they shouldn't be, or at least not by that much)

PatricioooAG commented 3 years ago

Sorry, no no, the other build in this post, both builds running in m1.

PatricioooAG commented 3 years ago

Hey. I have Adalight WS2812B with Arduino cheaper one from CN and I updated it with Fastled because it have problems with original firmware. Now the Arm version is working full on all modes with mini M1. Thanks so much.

zomfg commented 3 years ago

I need someone to run this on M1, basically it's a little benchmark to see if some optimizations work: just run ./run.sh in a terminal and post the resulting run.log It'll take couple of minutes and ideally, please avoid running moderate/heavy loads on the side to not influence the results (as you would do with any benchmark) 👍 thank you

PatricioooAG commented 3 years ago

run.log Welcome.

melgu commented 3 years ago

M1 Mac mini. Pretty much the only thing running in the background was Homebridge. run.log

zomfg commented 3 years ago

awesome! those things look faaast ... I'd like you to test both of these builds:

and see if both have the same CPU usage and if it's any better than the older builds you were using, if you can give CPU% for each, that would be great thanks!

melgu commented 3 years ago

I tried three versions with the same video. Here is the average CPU usage for each version: Previous (rev bc6879bf): 9.7-10 % M1 only: 8.7-9.0 % Universal: 8.5-8.7 %

By the way, I'm impressed by the speed at which you are developing new versions.

PatricioooAG commented 3 years ago

Firts M1 app 37% avrg M1 today 33.5% avrg Universal today 35% avrg ( grabber 180 leds full screen 60ms ) ( The universal is working without open quarantine )

zomfg commented 3 years ago

ha, interesting.. a bit underwhelming compared to the little benchmark is this one any different? (ah good to know about universal)

melgu commented 3 years ago

7,8 - 8,5 % with the same video as in my previous post.

PatricioooAG commented 3 years ago

Sorry. Here we're in holidays. Give me 2/3 days and I test. Thanks.

PatricioooAG commented 3 years ago

With Neon 2 cpu is lower. Around 30% with grabber same config than the other day. But is working really well. I can't see lag changing colors. I'm in 4k.

PatricioooAG commented 3 years ago

Thanks very much.

zomfg commented 3 years ago

thanks to both of you

franz67fw commented 3 years ago

could you try this universal app

also how's the CPU usage on M1 compared to your old ones?

The app’s working for me but Lights don’t turn on ... :(

zomfg commented 3 years ago

check this https://github.com/psieg/Lightpack/issues/390#issuecomment-690270503

franz67fw commented 3 years ago

That’s what I already tried but when I launch that app (the 6.0), it appears to enable the screen functions in my settings , but I can’t find it app opened anywhere !
Le 28 févr. 2021 à 12:00, Sergio notifications@github.com a écrit :

check this #390 (comment) https://github.com/psieg/Lightpack/issues/390#issuecomment-690270503 — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/psieg/Lightpack/issues/406#issuecomment-787433726, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATAGQCS3XYAHPQOE6BQ6GTTTBIO4PANCNFSM4TSHKRFA.

zomfg commented 3 years ago

the 6.0 (or anything above 5.2.xx) isn't from here so I can't say much about those the first time you launch, you go through configuration, in the end you should get a new icon near the clock (no windows, or icons in dock) which you right click and control stuff from there if you have all that, just no lights, try moodlamp mode, if still no lights you need to make sure (any) software can talk to your serial port and that you picked the right one and with the right baud rate if moodlamp works but not screen capture, check the screen capture permissions from the comment above, make sure prismatik is checked, restart it if you went through configuration and have no icon in the end, then I don't know, check system logs if dmg or app won't open, you can try to make your gatekeeper to accept apps "from anywhere"

franz67fw commented 3 years ago

help plz !!! the Prismatik universal application works fine on my Macbook Air under OS Big Sur 11.2.2 but the LEDs do not light up even when I program them according to my USB port ... Anyone have an idea or anything ?? thank you in advance !

franz67fw commented 3 years ago

still not working with 5....27 or 6.0 :'( help plz !!!

franz67fw commented 3 years ago

any working version for my Macbook Air 13" from 2013 under Os Big Sur plz ? I bought my lightpack device 2month ago but I still can´t use it ! :´(

melgu commented 3 years ago

You probably know this already, but the latest Prismatik release (5.11.2..28) does not work on Apple Silicon.

franz67fw commented 3 years ago

Ok , what’s the correct version then ?

Cordialement, Mr Weinum François

Le 20 mai 2021 à 21:03, Melvin Gundlach @.***> a écrit :



You probably know this already, but the latest Prismatik release (5.11.2..28) does not work on Apple Silicon.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/psieg/Lightpack/issues/406#issuecomment-845399492, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATAGQCQJS4UQRAYUZQVPRXDTOVMGZANCNFSM4TSHKRFA.

zomfg commented 3 years ago

the ones i linked above

melgu commented 3 years ago

@franz67fw You should be fine with the regular version, as the 2013 MBA still uses Intel chips.

franz67fw commented 3 years ago

Ok but when I’m configurating the wizard , it seems to be a problem with my USB port name or something else...

Cordialement, Mr Weinum François

Le 20 mai 2021 à 21:05, Sergio @.***> a écrit :



the ones i linked above

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/psieg/Lightpack/issues/406#issuecomment-845401079, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATAGQCQA4APLCV4XPOBZOTTTOVMP5ANCNFSM4TSHKRFA.

melgu commented 3 years ago

@franz67fw Please open a separate issue with all the specifics. Thanks.

franz67fw commented 3 years ago

Which specifics you mean ?

Cordialement, Mr Weinum François

Le 20 mai 2021 à 21:09, Melvin Gundlach @.***> a écrit :



@franz67fwhttps://github.com/franz67fw Please open a separate issue with all the specifics. Thanks.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/psieg/Lightpack/issues/406#issuecomment-845403757, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATAGQCX4WPPZYXFZPOKOWETTOVNALANCNFSM4TSHKRFA.

melgu commented 3 years ago

@franz67fw The exact error message, information about your setup. Anything that can help to diagnose the issue.

franz67fw commented 3 years ago

Ok i’ll do it asap Thx

Cordialement, Mr Weinum François

Le 20 mai 2021 à 21:14, Melvin Gundlach @.***> a écrit :



@franz67fwhttps://github.com/franz67fw The exact error message, information about your setup. Anything that can help to diagnose the issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/psieg/Lightpack/issues/406#issuecomment-845406743, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATAGQCU4THBOI6AKZEGV7PLTOVNSNANCNFSM4TSHKRFA.

zomfg commented 3 years ago

You probably know this already, but the latest Prismatik release (5.11.2..28) does not work on Apple Silicon.

.28 universal

@psieg fiy: xcode 12.4 is fine, 12.5 has this, once VERSION renamed it worked

psieg commented 3 years ago

Yeah I went back to11.4 after getting those compile errors. 12.4 is all that's needed?

zomfg commented 3 years ago

needed for? M1? no, well, not only: you pretty much need to build your own arm qt too but in general on macos it's better to keep up with sdks

psieg commented 3 years ago

Is that feasible to do in the GH workflow, or is there an arm binary qt available in the standard repos?

zomfg commented 3 years ago

Is that feasible to do in the GH workflow

would take days to build probably

or is there an arm binary qt available in the standard repos?

5.15 is supposed to be LTS, but they locked away free updates and I don't remember them clearly saying what would happen with arm support for current LTS... i think they said it would be added to 6.1, and by looking at the 6.2 beta there seems to be "arm64" thrown around, but they also said they'll finish porting all the modules with 6.2, yet I don't see qtserialport there (unless they combined it into some new package and I missed it)

franz67fw commented 3 years ago

all of that to me is understandable at the moment. If anyone can just tell me how to start over from the ground up with the right version of Prismatik for OS Big Sur in a 2013 Intel Macbook Air that would be great thanks!

Cordialement, Mr Weinum François

Le 20 mai 2021 à 23:03, Sergio @.***> a écrit :



Is that feasible to do in the GH workflow

would take days to build probably

or is there an arm binary qt available in the standard repos?

5.15 is supposed to be LTS, but they locked away free updates and I don't remember them clearly saying what would happen with arm support for current LTS... i think they said it would be added to 6.1, and by looking at the 6.2 beta there seems to be "arm64" thrown around, but they also said they'll finish porting all the modules with 6.2, yet I don't see qtserialport there (unless they combined it into some new package and I missed it)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/psieg/Lightpack/issues/406#issuecomment-845474807, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATAGQCWUFRPKF6T7HQ2FMUTTOV2IPANCNFSM4TSHKRFA.

franz67fw commented 3 years ago

I can’t understand why it’s so complicated ! Under Windows , you download Ambibox , you plug lights in and it works !!!

Cordialement, Mr Weinum François

Le 21 mai 2021 à 06:06, François Weinum @.***> a écrit :



all of that to me is understandable at the moment. If anyone can just tell me how to start over from the ground up with the right version of Prismatik for OS Big Sur in a 2013 Intel Macbook Air that would be great thanks!

Cordialement, Mr Weinum François

Le 20 mai 2021 à 23:03, Sergio @.***> a écrit :



Is that feasible to do in the GH workflow

would take days to build probably

or is there an arm binary qt available in the standard repos?

5.15 is supposed to be LTS, but they locked away free updates and I don't remember them clearly saying what would happen with arm support for current LTS... i think they said it would be added to 6.1, and by looking at the 6.2 beta there seems to be "arm64" thrown around, but they also said they'll finish porting all the modules with 6.2, yet I don't see qtserialport there (unless they combined it into some new package and I missed it)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/psieg/Lightpack/issues/406#issuecomment-845474807, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATAGQCWUFRPKF6T7HQ2FMUTTOV2IPANCNFSM4TSHKRFA.

psieg commented 3 years ago

Mr Weinum François,

on a 2013 Intel device you can use the Version from the releases page without issue.

franz67fw commented 3 years ago

Où trouver ces versions sans problème ?

Cordialement, Mr Weinum François

Le 23 mai 2021 à 01:07, Patrick @.***> a écrit :



Mr Weinum François,

on a 2013 Intel device you can use the Version from the releases page without issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/psieg/Lightpack/issues/406#issuecomment-846474213, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATAGQCWJ5GKKHJWF6UDJ3CLTPA2L3ANCNFSM4TSHKRFA.

melgu commented 3 years ago

The new release 5.11.2.29 doesn't start with the same error.

zomfg commented 3 years ago

expected until qt 6.2 is out https://wiki.qt.io/Qt_6.2_Release