Ghaf kill switch GUI application#1577
Conversation
|
Just looking at the screenshot. Should we have a kill switch that will kill all? So a 4th toggle. Maybe at the top. That will switch all the others to off on demand? Also, from a UX point of view. There is the Airplane mode toggle in the Wi-Fi settings. Should this toggle that switch so you can see the state there. But then we would have to decide who has precedence. i.e. if the kill switch is turned on, can you disable airplane mode from the Wi-Fi menu? Or how do we warn? It could be that either one will toggle the other (kill switch Wi-Fi, and network setting airplane mode). Or is the kill switch just a convenience function to centralize turning them all off? |
Yes , we can add 4th toggle to kill all as option for convenience, if it's a requirement.
Its interesting problem, right now both are independent and state is not synchronized. Kill Switch app calls
We can discuss more it, I think better to keep one option to avoid confusion and complexity. @kajusnau if you have ideas please suggest. |
|
The way I see it we have two possible approaches here to avoid confusion:
Few things to consider: My vote would be to simply hide the airplane mode toggle (I can make a patch for that). |
|
Also I think this discussion and any possible screenshots should be moved to tiiuae/ghafpkgs#100. |
8be791b to
86bebb3
Compare
86bebb3 to
b6ee0c7
Compare
b6ee0c7 to
d878f56
Compare
|
No issues in building |
Looks like the same issue that there has been with Dell 7230. Hopefully #1588 will fix it. |
d878f56 to
c7497e2
Compare
c7497e2 to
c3dc87a
Compare
c3dc87a to
dc70b0b
Compare
dc70b0b to
b477378
Compare
|
Tested on Darter Pro (
I already tested this feature on the Lenovo X1 in tiiuae/ghafpkgs#100 |
b477378 to
ab68d96
Compare
With this change "ghaf-killswitch" will now be accessible only in "gui-vm". Additionally, a cosmic applet has been incorporated for the kill switch GUI application. Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
This patch introduces status check for the ghaf-killswitch for supported devices and integrates Bluetooth (bt) device management into the killswitch service. It enables the blocking, unblocking and status monitoring of Bluetooth USB devices. Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
This change introduces a new --all flag allowing users to block or unblock every supported device in a single command. Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
ab68d96 to
43bed4a
Compare
kajusnau
left a comment
There was a problem hiding this comment.
I guess I'm too late with this but adding anyway for future reference 😀
Description of Changes
App can be launched from top right corner of the screen (menu bar/ panel bar)
Device blocking and unblocking works fine.
Device state is persistent and it should reflect actual device status on application startup.
Documentation updated accordingly.
Note: Just in case
Kill Switch Appicon doesn't appear, please follow below steps:Type of Change
Related Issues / Tickets
Depends on:
tiiuae/ghafpkgs#100 [feat(kill-switch): Add ghaf-kill-switch-app gui interface] --> (Merged)
#1528 [Implement PCI device management via vhotplug] --> (Merged)
Checklist
make-checksand it passesTesting Instructions
Applicable Targets
aarch64aarch64x86_64x86_64x86_64Installation Method
nixos-rebuild ... switchTest Steps To Verify:
Launch the application as mentioned in
Description of Changessection.ghaf-killswitchcommand line tool is moved fromghaf-hosttogui-vmAdd support for bluetooth device
[ghaf@gui-vm:~]$ ghaf-killswitch block bluetooth Blocking device bt0 ... INFO Successfully detachedstatuscommand is added forghaf-killswitchto check if device is blocked or not.[ghaf@gui-vm:~] $ ghaf-killswitch status mic: blocked net: blocked cam: blocked bluetooth: unblockedAdd support to block and unblock all devices