... | @@ -108,11 +108,13 @@ sudo gdbus call --system \ |
... | @@ -108,11 +108,13 @@ sudo gdbus call --system \ |
|
|
|
|
|
See [this thread](https://forums.puri.sm/t/phone-call-api/8433) for context.
|
|
See [this thread](https://forums.puri.sm/t/phone-call-api/8433) for context.
|
|
|
|
|
|
### Getting/Setting Screen Brightness
|
|
## Getting/Setting Screen Brightness
|
|
|
|
|
|
Introspect the GNOME Settings daemon to see what interfaces are available:
|
|
Introspect the GNOME Settings daemon to see what interfaces are available:
|
|
```
|
|
```
|
|
gdbus introspect --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power
|
|
gdbus introspect --session \
|
|
|
|
--dest org.gnome.SettingsDaemon.Power \
|
|
|
|
--object-path /org/gnome/SettingsDaemon/Power
|
|
```
|
|
```
|
|
|
|
|
|
The `org.gnome.SettingsDaemon.Power.Screen` interface is relevant:
|
|
The `org.gnome.SettingsDaemon.Power.Screen` interface is relevant:
|
... | @@ -131,7 +133,11 @@ The `org.gnome.SettingsDaemon.Power.Screen` interface is relevant: |
... | @@ -131,7 +133,11 @@ The `org.gnome.SettingsDaemon.Power.Screen` interface is relevant: |
|
|
|
|
|
Get all properties related to the screen:
|
|
Get all properties related to the screen:
|
|
```
|
|
```
|
|
gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.freedesktop.DBus.Properties.GetAll org.gnome.SettingsDaemon.Power.Screen
|
|
gdbus call --session \
|
|
|
|
--dest org.gnome.SettingsDaemon.Power \
|
|
|
|
--object-path /org/gnome/SettingsDaemon/Power \
|
|
|
|
--method org.freedesktop.DBus.Properties.GetAll \
|
|
|
|
org.gnome.SettingsDaemon.Power.Screen
|
|
```
|
|
```
|
|
This should return something like the following:
|
|
This should return something like the following:
|
|
```
|
|
```
|
... | @@ -140,12 +146,20 @@ This should return something like the following: |
... | @@ -140,12 +146,20 @@ This should return something like the following: |
|
|
|
|
|
The brightness can be individually read:
|
|
The brightness can be individually read:
|
|
```
|
|
```
|
|
gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.freedesktop.DBus.Properties.Get org.gnome.SettingsDaemon.Power.Screen Brightness
|
|
gdbus call --session \
|
|
|
|
--dest org.gnome.SettingsDaemon.Power \
|
|
|
|
--object-path /org/gnome/SettingsDaemon/Power \
|
|
|
|
--method org.freedesktop.DBus.Properties.Get \
|
|
|
|
org.gnome.SettingsDaemon.Power.Screen Brightness
|
|
```
|
|
```
|
|
|
|
|
|
It can also be set:
|
|
It can also be set:
|
|
```
|
|
```
|
|
gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.freedesktop.DBus.Properties.Set org.gnome.SettingsDaemon.Power.Screen Brightness '<30>'
|
|
gdbus call --session \
|
|
|
|
--dest org.gnome.SettingsDaemon.Power \
|
|
|
|
--object-path /org/gnome/SettingsDaemon/Power \
|
|
|
|
--method org.freedesktop.DBus.Properties.Set \
|
|
|
|
org.gnome.SettingsDaemon.Power.Screen Brightness '<30>'
|
|
```
|
|
```
|
|
|
|
|
|
## Using Applications to Provide Services
|
|
## Using Applications to Provide Services
|
... | | ... | |