diff --git a/daemon/backends/upower/backlight_helper_actions.actions b/daemon/backends/upower/backlight_helper_actions.actions index 3edd8e8f..c80e948a 100644 --- a/daemon/backends/upower/backlight_helper_actions.actions +++ b/daemon/backends/upower/backlight_helper_actions.actions @@ -1,420 +1,328 @@ [Domain] Name=KDE Name[ar]=كدي Name[bs]=KDE Name[ca]=KDE Name[ca@valencia]=KDE Name[cs]=KDE Name[da]=KDE Name[de]=KDE Name[el]=KDE Name[en_GB]=KDE Name[es]=KDE Name[et]=KDE Name[eu]=KDE Name[fi]=KDE Name[fr]=KDE Name[gl]=KDE Name[he]=KDE Name[hu]=KDE Name[ia]=KDE Name[id]=KDE Name[it]=KDE Name[ja]=KDE Name[ko]=KDE Name[lt]=KDE Name[nb]=KDE Name[nds]=KDE Name[nl]=KDE Name[nn]=KDE Name[pa]=KDE Name[pl]=KDE Name[pt]=KDE Name[pt_BR]=KDE Name[ro]=KDE Name[ru]=KDE Name[sk]=KDE Name[sl]=KDE Name[sr]=КДЕ Name[sr@ijekavian]=КДЕ Name[sr@ijekavianlatin]=KDE Name[sr@latin]=KDE Name[sv]=KDE Name[tr]=KDE Name[uk]=KDE Name[x-test]=xxKDExx Name[zh_CN]=KDE Name[zh_TW]=KDE Icon=kde [org.kde.powerdevil.backlighthelper.brightnessmax] Name=Get maximum brightness value Name[bs]=Dobij maksimalnu vrijednost osvjetljenja Name[ca]=Obtén el valor màxim de la lluminositat Name[ca@valencia]=Obtén el valor màxim de la lluminositat Name[cs]=Získat maximální hodnotu jasu Name[da]=Hent maksimal værdi for lysstyrke Name[de]=Maximale Bildschirmhelligkeit abrufen Name[el]=Ανάκτηση της μέγιστης τιμής λαμπρότητας Name[en_GB]=Get maximum brightness value Name[es]=Obtener el valor del brillo máximo Name[et]=Heleduse maksimumväärtuse hankimine Name[eu]=Lortu gehienezko distira balioa Name[fi]=Lue kirkkauden enimmäisarvo Name[fr]=Obtenir la luminosité maximale Name[gl]=Obter o valor de brillo máximo Name[he]=קבל ערך בהירות מקסימלית Name[hu]=Maximális fényerősség lekérdezése Name[id]=Dapatkan nilai kecerahan maksimum Name[it]=Ottieni il valore massimo di luminosità Name[ko]=최대 밝기 가져오기 Name[lt]=Gauti maksimalią šviesumo vertė Name[nb]=Hent største verdi for lysstyrke Name[nds]=Hööchst Helligkeitweert afropen Name[nl]=Waarde van maximale helderheid ophalen Name[nn]=Hent makslysstyrke Name[pa]=ਵੱਧ ਤੋਂ ਵੱਧ ਚਮਕ ਮੁੱਲ ਲਵੋ Name[pl]=Pobierz największą wartość jasności Name[pt]=Obter o valor máximo do brilho Name[pt_BR]=Obter o valor máximo do brilho Name[ru]=Определение максимального значения яркости Name[sk]=Získať maximálnu hodnotu jasnosti Name[sl]=Dobi največjo vrednost svetlosti Name[sr]=Добави највећу вредност осветљаја Name[sr@ijekavian]=Добави највећу вредност освјетљаја Name[sr@ijekavianlatin]=Dobavi najveću vrednost osvjetljaja Name[sr@latin]=Dobavi najveću vrednost osvetljaja Name[sv]=Hämta maximalt värde på ljusstyrka Name[tr]=En yüksek parlaklık değerini al Name[uk]=Отримання максимального значення яскравості Name[x-test]=xxGet maximum brightness valuexx Name[zh_CN]=获取最大亮度 Name[zh_TW]=取得最大亮度值 Description=System policies prevent you from getting the brightness level. Description[ar]=تمنعك سياسات النظام من الحصول على معلومات مستوى السطوع. Description[bs]=Sistemska pravila vas sprečavju od dobijanja nivoa osvjetljenja. Description[ca]=Les polítiques del sistema impedeixen que conegueu el nivell de lluminositat de la pantalla. Description[ca@valencia]=Les polítiques del sistema impedeixen que conegueu el nivell de lluminositat de la pantalla. Description[cs]=Nastavení systému vám znemožňuje získat úroveň podsvícení. Description[da]=Systempolitikker forhindrer dig i at hente lysstyrkeniveauet. Description[de]=Die Stufe der Bildschirmhelligkeit kann aufgrund einer Systemrichtlinie nicht abgerufen werden. Description[el]=Οι πολιτικές του συστήματος αποτρέπουν τη λήψη του επίπεδου φωτεινότητας. Description[en_GB]=System policies prevent you from getting the brightness level. Description[es]=Las políticas del sistema le impiden obtener el nivel de brillo. Description[et]=Süsteemi reeglid takistavad heledustaseme hankimist. Description[eu]=Sistemako gidalerroek distira-maila eskuratzea galarazten dizute. Description[fi]=Järjestelmäkäytäntö estää sinua lukemasta kirkkauden tasoa. Description[fr]=La stratégie système vous empêche d'obtenir le niveau de luminosité. Description[gl]=As políticas do sistema evitan que coñeza o nivel de brillo. Description[he]=מדיניות המערכת מונעת ממך לקבל את רמת הבהירות. Description[hu]=A rendszer házirendjei nem engedik meg Önnek a fényesség lekérdezését. Description[ia]=Le politicas de systema preveni te ex obtener le nivello de brillantia. Description[id]=Kebijakan sistem mencegah Anda dari mendapatkan tingkat kecerahan. Description[it]=Le linee guida del sistema impediscono di leggere il livello di luminosità. Description[ko]=시스템 정책 때문에 밝기를 가져올 수 없습니다. Description[lt]=Sistemos taisyklės neleidžia jums gauti šviesumo lygio. Description[nb]=Systembestemmelser gjør at du ikke kan hente lysstyrkenivået. Description[nds]=De Systeemregeln verlöövt nich, dat Du de Instellen för de Helligkeit afröppst. Description[nl]=Systeembeleid voorkwam dat u het helderheidsniveau kon verkrijgen. Description[nn]=Systemreglane hindrar deg i å henta makslysstyrken. Description[pa]=ਸਿਸਟਮ ਪਾਲਸੀ ਤੁਹਾਨੂੰ ਚਮਕ (brightness) ਲੈਵਲ ਲੈਣ ਤੋਂ ਰੋਕਦੀ ਹੈ। Description[pl]=Zasady systemowe nie pozwalają ci na odczytanie poziomu jasności. Description[pt]=As políticas do sistema impedem-no de obter o nível de brilho. Description[pt_BR]=As políticas do sistema não permitem a modificação do nível de brilho. Description[ro]=Politicile sistemului vă interzic obținerea nivelului de luminozitate. Description[ru]=Правила безопасности запрещают вам узнавать уровень яркости. Description[sk]=Systémové politiky vám zabránili získať úroveň jasu. Description[sl]=Sistemski pravilniki vam onemogočajo, da bi prebrali svetlost. Description[sr]=Системске смернице спречавају добављање поставки нивоа осветљаја. Description[sr@ijekavian]=Системске смјернице спречавају добављање поставки нивоа освјетљаја. Description[sr@ijekavianlatin]=Sistemske smjernice sprečavaju dobavljanje postavki nivoa osvjetljaja. Description[sr@latin]=Sistemske smernice sprečavaju dobavljanje postavki nivoa osvetljaja. Description[sv]=Systemets policy förhindrar att du hämtar ljusstyrkans nivå. Description[tr]=Sistem ilkeleri parlaklık seviyesini istemenizi engelliyor. Description[uk]=Відповідно до загальносистемних правил, ви не можете отримувати даних щодо рівня яскравості. Description[x-test]=xxSystem policies prevent you from getting the brightness level.xx Description[zh_CN]=系统安全策略不允许获取亮度级别。 Description[zh_TW]=系統政策不允許您取得亮度設定。 Policy=yes PolicyInactive=yes [org.kde.powerdevil.backlighthelper.brightness] Name=Get brightness Name[ar]=احصل على معلومات السطوع Name[bs]=Dobavi osvetljenje Name[ca]=Obtén la lluminositat Name[ca@valencia]=Obtén la lluminositat Name[cs]=Získat jas Name[da]=Hent lysstyrke Name[de]=Bildschirmhelligkeit abrufen Name[el]=Ανάκτηση λαμπρότητας Name[en_GB]=Get brightness Name[es]=Obtener brillo Name[et]=Heleduse hankimine Name[eu]=Eskuratu distira Name[fi]=Lue kirkkaus Name[fr]=Obtenir la luminosité Name[gl]=Obter o brillo Name[he]=קבל בהירות Name[hu]=Fényesség lekérdezése Name[ia]=Obtene brillantia Name[id]=Dapatkan kecerahan Name[it]=Leggi la luminosità Name[ko]=밝기 가져오기 Name[lt]=Gauti šviesumą Name[nb]=Hent lysstyrke Name[nds]=Helligkeit afropen Name[nl]=Helderheid verkrijgen Name[nn]=Hent lysstyrke Name[pa]=ਚਮਕ ਲਵੋ Name[pl]=Pobierz jasność Name[pt]=Obter o brilho Name[pt_BR]=Obter brilho Name[ro]=Obține luminozitatea Name[ru]=Определение значения яркости Name[sk]=Získať jas Name[sl]=Dobi svetlost Name[sr]=Добави осветљај Name[sr@ijekavian]=Добави освјетљај Name[sr@ijekavianlatin]=Dobavi osvjetljaj Name[sr@latin]=Dobavi osvetljaj Name[sv]=Hämta ljusstyrka Name[tr]=Parlaklığı Göster Name[uk]=Отримання рівня яскравості Name[x-test]=xxGet brightnessxx Name[zh_CN]=获取亮度 Name[zh_TW]=取得亮度 Description=System policies prevent you from getting the brightness level. Description[ar]=تمنعك سياسات النظام من الحصول على معلومات مستوى السطوع. Description[bs]=Sistemska pravila vas sprečavju od dobijanja nivoa osvjetljenja. Description[ca]=Les polítiques del sistema impedeixen que conegueu el nivell de lluminositat de la pantalla. Description[ca@valencia]=Les polítiques del sistema impedeixen que conegueu el nivell de lluminositat de la pantalla. Description[cs]=Nastavení systému vám znemožňuje získat úroveň podsvícení. Description[da]=Systempolitikker forhindrer dig i at hente lysstyrkeniveauet. Description[de]=Die Stufe der Bildschirmhelligkeit kann aufgrund einer Systemrichtlinie nicht abgerufen werden. Description[el]=Οι πολιτικές του συστήματος αποτρέπουν τη λήψη του επίπεδου φωτεινότητας. Description[en_GB]=System policies prevent you from getting the brightness level. Description[es]=Las políticas del sistema le impiden obtener el nivel de brillo. Description[et]=Süsteemi reeglid takistavad heledustaseme hankimist. Description[eu]=Sistemako gidalerroek distira-maila eskuratzea galarazten dizute. Description[fi]=Järjestelmäkäytäntö estää sinua lukemasta kirkkauden tasoa. Description[fr]=La stratégie système vous empêche d'obtenir le niveau de luminosité. Description[gl]=As políticas do sistema evitan que coñeza o nivel de brillo. Description[he]=מדיניות המערכת מונעת ממך לקבל את רמת הבהירות. Description[hu]=A rendszer házirendjei nem engedik meg Önnek a fényesség lekérdezését. Description[ia]=Le politicas de systema preveni te ex obtener le nivello de brillantia. Description[id]=Kebijakan sistem mencegah Anda dari mendapatkan tingkat kecerahan. Description[it]=Le linee guida del sistema impediscono di leggere il livello di luminosità. Description[ko]=시스템 정책 때문에 밝기를 가져올 수 없습니다. Description[lt]=Sistemos taisyklės neleidžia jums gauti šviesumo lygio. Description[nb]=Systembestemmelser gjør at du ikke kan hente lysstyrkenivået. Description[nds]=De Systeemregeln verlöövt nich, dat Du de Instellen för de Helligkeit afröppst. Description[nl]=Systeembeleid voorkwam dat u het helderheidsniveau kon verkrijgen. Description[nn]=Systemreglane hindrar deg i å henta makslysstyrken. Description[pa]=ਸਿਸਟਮ ਪਾਲਸੀ ਤੁਹਾਨੂੰ ਚਮਕ (brightness) ਲੈਵਲ ਲੈਣ ਤੋਂ ਰੋਕਦੀ ਹੈ। Description[pl]=Zasady systemowe nie pozwalają ci na odczytanie poziomu jasności. Description[pt]=As políticas do sistema impedem-no de obter o nível de brilho. Description[pt_BR]=As políticas do sistema não permitem a modificação do nível de brilho. Description[ro]=Politicile sistemului vă interzic obținerea nivelului de luminozitate. Description[ru]=Правила безопасности запрещают вам узнавать уровень яркости. Description[sk]=Systémové politiky vám zabránili získať úroveň jasu. Description[sl]=Sistemski pravilniki vam onemogočajo, da bi prebrali svetlost. Description[sr]=Системске смернице спречавају добављање поставки нивоа осветљаја. Description[sr@ijekavian]=Системске смјернице спречавају добављање поставки нивоа освјетљаја. Description[sr@ijekavianlatin]=Sistemske smjernice sprečavaju dobavljanje postavki nivoa osvjetljaja. Description[sr@latin]=Sistemske smernice sprečavaju dobavljanje postavki nivoa osvetljaja. Description[sv]=Systemets policy förhindrar att du hämtar ljusstyrkans nivå. Description[tr]=Sistem ilkeleri parlaklık seviyesini istemenizi engelliyor. Description[uk]=Відповідно до загальносистемних правил, ви не можете отримувати даних щодо рівня яскравості. Description[x-test]=xxSystem policies prevent you from getting the brightness level.xx Description[zh_CN]=系统安全策略不允许获取亮度级别。 Description[zh_TW]=系統政策不允許您取得亮度設定。 Policy=yes PolicyInactive=yes [org.kde.powerdevil.backlighthelper.setbrightness] Name=Set brightness Name[ar]=اضبط السطوع Name[bs]=Postavi osvetljenje Name[ca]=Ajusta la lluminositat Name[ca@valencia]=Ajusta la lluminositat Name[cs]=Nastavit jas Name[da]=Sæt lysstyrke Name[de]=Bildschirmhelligkeit einstellen Name[el]=Ρύθμιση λαμπρότητας Name[en_GB]=Set brightness Name[es]=Fijar brillo Name[et]=Heleduse määramine Name[eu]=Ezarri distira Name[fi]=Aseta kirkkaus Name[fr]=Fixer la luminosité Name[gl]=Axustar o brillo Name[he]=הגדר בהירות Name[hu]=Fényesség beállítása Name[ia]=Fixa brillantia Name[id]=Atur kecerahan Name[it]=Imposta la luminosità Name[ja]=明るさを設定 Name[ko]=밝기 설정하기 Name[lt]=Nustatyti šviesumą Name[nb]=Sett lysstyrke Name[nds]=Helligkeit instellen Name[nl]=Helderheid instellen Name[nn]=Vel lysstyrke Name[pa]=ਚਮਕ ਸੈੱਟ ਕਰੋ Name[pl]=Ustaw jasność Name[pt]=Mudar o brilho Name[pt_BR]=Definir o brilho Name[ro]=Stabilește luminozitatea Name[ru]=Установка значения яркости Name[sk]=Nastaviť jas Name[sl]=Nastavi svetlost Name[sr]=Постави осветљај Name[sr@ijekavian]=Постави освјетљај Name[sr@ijekavianlatin]=Postavi osvjetljaj Name[sr@latin]=Postavi osvetljaj Name[sv]=Ställ in ljusstyrka Name[tr]=Parlaklığı ayarla Name[uk]=Встановлення рівня яскравості Name[x-test]=xxSet brightnessxx Name[zh_CN]=设置亮度 Name[zh_TW]=設定亮度 Description=System policies prevent you from setting the brightness level. Description[ar]=تمنعك سياسات النظام من ضبط مستويات السطوع. Description[bs]=Sistemska pravila vas sprečavaju u postavljanju nivoa osvjetljenja. Description[ca]=Les polítiques del sistema impedeixen que ajusteu la lluminositat de la pantalla. Description[ca@valencia]=Les polítiques del sistema impedeixen que ajusteu la lluminositat de la pantalla. Description[cs]=Systémové omezení vám neumožňuje nastavit úroveň podsvícení. Description[da]=Systempolitikker forhindrer dig i at sætte lysstyrkeniveauet. Description[de]=Die Bildschirmhelligkeit kann aufgrund einer Systemrichtlinie nicht geändert werden. Description[el]=Οι πολιτικές του συστήματος αποτρέπουν τον ορισμό του επίπεδου φωτεινότητας. Description[en_GB]=System policies prevent you from setting the brightness level. Description[es]=Las políticas del sistema le impiden fijar el nivel de brillo. Description[et]=Süsteemi reeglid takistavad heleduse määramist. Description[eu]=Sistemako gidalerroek distira-maila ezartzea galarazten dizute. Description[fi]=Järjestelmäkäytäntö estää sinua asettamasta kirkkauden tasoa. Description[fr]=La stratégie système vous empêche de fixer le niveau de luminosité. Description[gl]=As políticas do sistema evitan que modifique o nivel de brillo. Description[he]=מדיניות המערכת מונעת ממך להגדיר את רמת הבהירות. Description[hu]=A rendszer házirendjei nem engedik meg Önnek a fényesség beállítását. Description[ia]=Le politicas de systema preveni te ex fixar le nivello de brillantia. Description[id]=Kebijakan sistem mencegah Anda dari mengatur tingkat kecerahan. Description[it]=Le linee guida del sistema impediscono di impostare il livello di luminosità. Description[ja]=システムポリシーにより、明るさを設定することができません。 Description[ko]=시스템 정책 때문에 밝기를 지정할 수 없습니다. Description[lt]=Sistemos taisyklės neleidžia jums nustatyti šviesumo lygio. Description[nb]=Systembestemmelser gjør at du ikke kan sette lysstyrkenivået. Description[nds]=De Systeemregeln verlöövt nich, dat Du de Instellen för de Helligkeit instellst. Description[nl]=Systeembeleid voorkwam dat u het helderheidsniveau kon instellen. Description[nn]=Systemreglane hindrar deg i å velja lysstyrken. Description[pa]=ਸਿਸਟਮ ਪਾਲਸੀ, ਜੋ ਤੁਹਾਨੂੰ ਚਮਕ ਲੈਵਲ ਸੈੱਟ ਕਰਨ ਤੋਂ ਰੋਕਦੀ ਹੈ। Description[pl]=Zasady systemowe nie pozwalają ci na ustawienie jasności. Description[pt]=As políticas do sistema impedem-no de mudar o nível de brilho. Description[pt_BR]=As políticas do sistema não permitem a modificação das configurações do nível de brilho. Description[ro]=Politicile sistemului vă interzic stabilirea nivelului de luminozitate. Description[ru]=Правила безопасности запрещают вам устанавливать уровень яркости. Description[sk]=Systémové politiky vám zabránili nastaviť úroveň jasu. Description[sl]=Sistemski pravilniki vam onemogočajo, da bi nastavili svetlost. Description[sr]=Системске смернице спречавају постављање нивоа осветљаја. Description[sr@ijekavian]=Системске смјернице спречавају постављање нивоа освјетљаја. Description[sr@ijekavianlatin]=Sistemske smjernice sprečavaju postavljanje nivoa osvjetljaja. Description[sr@latin]=Sistemske smernice sprečavaju postavljanje nivoa osvetljaja. Description[sv]=Systemets policy förhindrar att du ställer in ljusstyrkans nivå. Description[tr]=Sistem ilkeleri parlaklığı ayarlamanızı engelliyor. Description[uk]=Відповідно до загальносистемних правил, ви не можете встановлювати рівень яскравості. Description[x-test]=xxSystem policies prevent you from setting the brightness level.xx Description[zh_CN]=系统安全策略不允许设置亮度级别。 Description[zh_TW]=系統政策不允許您設定亮度。 Policy=yes - -[org.kde.powerdevil.backlighthelper.syspath] -Name=Get syspath -Name[ar]=احصل على مسار النظام -Name[bs]=Dobavi sistemsku stazu -Name[ca]=Obtén el «syspath» -Name[ca@valencia]=Obtén el «syspath» -Name[cs]=Získat syspath -Name[da]=Hent syspath -Name[de]=„syspath“ holen -Name[el]=Λήψη syspath -Name[en_GB]=Get syspath -Name[es]=Obtener ruta del sistema -Name[et]=Süsteemse asukoha hankimine -Name[eu]=Eskuratu sistemaren bide-izenak ("Syspath") -Name[fi]=Lue järjestelmäpolku -Name[fr]=Obtenir « syspath » -Name[gl]=Obter syspath -Name[hu]=Rendszerútvonal lekérése -Name[ia]=Obtene syspath -Name[id]=Dapatkan syspath -Name[it]=Ottieni percorso di sistema -Name[ko]=syspath 가져오기 -Name[lt]=Gauti syspath -Name[nb]=Hent syspath -Name[nds]=Syspadd halen -Name[nl]=Systeempad ophalen -Name[nn]=Hent syspath -Name[pa]=syspath ਲਵੋ -Name[pl]=Pobierz ścieżkę systemową -Name[pt]=Obter a localização do sistema -Name[pt_BR]=Obter o syspath -Name[ro]=Obține calea sys -Name[ru]=Получение системного пути -Name[sk]=Získať systémovú cestu -Name[sl]=Dobi syspath -Name[sr]=Добави сис‑путању -Name[sr@ijekavian]=Добави сис‑путању -Name[sr@ijekavianlatin]=Dobavi sis‑putanju -Name[sr@latin]=Dobavi sis‑putanju -Name[sv]=Hämta systemsökväg -Name[tr]=syspath Görüntüle -Name[uk]=Отримання шляху у системі -Name[x-test]=xxGet syspathxx -Name[zh_CN]=获取 syspath -Name[zh_TW]=取得系統路徑 -Description=System policies prevent you from getting the syspath -Description[ar]=تمنعك سياسات النظام من الحصول على مسار النظام -Description[bs]=Sistemske smjernice sprečavaju dobavljanje sistemske staze. -Description[ca]=Les polítiques del sistema impedeixen que conegueu el camí del sistema «syspath» -Description[ca@valencia]=Les polítiques del sistema impedeixen que conegueu el camí del sistema «syspath» -Description[cs]=Nastavení systému vám znemožňuje získat syspath -Description[da]=Systempolitikker forhindrer dig i at hente syspath -Description[de]=Systemrichtlinien verhindern das Holen von „syspath“ -Description[el]=Οι πολιτικές του συστήματος αποτρέπουν τη λήψη του syspath -Description[en_GB]=System policies prevent you from getting the syspath -Description[es]=Las políticas del sistema le impiden obtener la ruta del sistema. -Description[et]=Süsteemi reeglid takistavad süsteemse asukoha hankimist -Description[eu]=Sistemako gidalerroek sistemaren bide-izenak ("syspath") eskuratzea galarazten dizu. -Description[fi]=Järjestelmäkäytäntö estää sinua lukemasta järjestelmäpolkua. -Description[fr]=La stratégie système vous empêche d'obtenir « syspath ». -Description[gl]=As políticas do sistema evitan que coñeza syspath -Description[hu]=A rendszer házirendjei nem engedik meg Önnek a rendszerútvonal lekérdezését. -Description[ia]=Le politicas de systema preveni te ex obtener le syspath -Description[id]=Kebijakan sistem mencegah Anda dari mendapatkan syspath. -Description[it]=Le regole del sistema ti impediscono di ottenere il percorso di sistema -Description[ko]=시스템 정책 때문에 syspath를 가져올 수 없습니다. -Description[lt]=Sistemos taisyklės neleidžia jums gauti syspath -Description[nb]=Systembestemmelser gjør at du ikke kan hente syspath-en -Description[nds]=De Systeemregeln verlöövt nich, dat Du den Syspadd afröppst. -Description[nl]=Systeembeleid voorkwam dat u het systeempad kon ophalen -Description[nn]=Systemreglane hindrar deg i å henta syspath. -Description[pa]=ਸਿਸਟਮ ਪਾਲਸੀ ਤੁਹਾਨੂੰ syspath ਲੈਣ ਤੋਂ ਰੋਕਦੀ ਹੈ। -Description[pl]=Zasady systemowe nie pozwalają ci na odczytanie ścieżki systemowej -Description[pt]=As políticas do sistema impedem-no de obter a localização do sistema -Description[pt_BR]=As políticas do sistema não permitem a modificação do syspath -Description[ro]=Politicile sistemului vă interzic obținerea căii sys -Description[ru]=Правила безопасности не позволяют вам получить системный путь. -Description[sk]=Systémové politiky vám neumožňujú získanie systémovej cesty -Description[sl]=Sistemski pravilniki vam onemogočajo, da bi prebrali syspath. -Description[sr]=Системске смернице спречавају добављање сис‑путање. -Description[sr@ijekavian]=Системске смјернице спречавају добављање сис‑путање. -Description[sr@ijekavianlatin]=Sistemske smjernice sprečavaju dobavljanje sis‑putanje. -Description[sr@latin]=Sistemske smernice sprečavaju dobavljanje sis‑putanje. -Description[sv]=Systemets policy förhindrar att du hämtar systemsökvägen. -Description[tr]=Sistem ilkeleri syspath bilgisini istemenizi engelliyor. -Description[uk]=Відповідно до загальносистемних правил, ви не можете отримувати даних щодо шляхів у системі -Description[x-test]=xxSystem policies prevent you from getting the syspathxx -Description[zh_CN]=系统安全策略不允许获取系统路径 -Description[zh_TW]=系統政策不允許您取得系統路徑 -Policy=yes -PolicyInactive=yes diff --git a/daemon/backends/upower/backlighthelper.cpp b/daemon/backends/upower/backlighthelper.cpp index 5b133c83..3ea58118 100644 --- a/daemon/backends/upower/backlighthelper.cpp +++ b/daemon/backends/upower/backlighthelper.cpp @@ -1,356 +1,340 @@ /* This file is part of the KDE project * Copyright (C) 2010-2011 Lukas Tinkl * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License version 2 as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * */ #include "backlighthelper.h" #include #include #include #include #include #ifdef Q_OS_FREEBSD #define USE_SYSCTL #endif #ifdef USE_SYSCTL #include #include #define HAS_SYSCTL(n) (sysctlbyname(n, NULL, NULL, NULL, 0) == 0) #endif #define BACKLIGHT_SYSFS_PATH "/sys/class/backlight/" #define LED_SYSFS_PATH "/sys/class/leds/" BacklightHelper::BacklightHelper(QObject *parent) : QObject(parent) { init(); } void BacklightHelper::init() { initUsingBacklightType(); if (m_dirname.isEmpty()) { initUsingSysctl(); if (m_sysctlDevice.isEmpty() || m_sysctlBrightnessLevels.isEmpty()) { qCWarning(POWERDEVIL) << "no kernel backlight interface found"; return; } } m_isSupported = true; } bool BacklightHelper::isRawBacklightEnabled(const QString &interface) { QFile file(BACKLIGHT_SYSFS_PATH + interface + "/device/enabled"); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { return false; } QByteArray buffer = file.readLine().trimmed(); if (buffer == "enabled") { return true; } return false; } void BacklightHelper::initUsingBacklightType() { QDir backlightDir(BACKLIGHT_SYSFS_PATH); backlightDir.setFilter(QDir::AllDirs | QDir::NoDot | QDir::NoDotDot | QDir::NoDotAndDotDot | QDir::Readable); backlightDir.setSorting(QDir::Name | QDir::Reversed);// Reverse is needed to priorize acpi_video1 over 0 QStringList interfaces = backlightDir.entryList(); QFile file; QByteArray buffer; QStringList firmware, platform, raw, leds; Q_FOREACH(const QString & interface, interfaces) { file.setFileName(BACKLIGHT_SYSFS_PATH + interface + "/type"); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { continue; } buffer = file.readLine().trimmed(); if (buffer == "firmware") { firmware.append(interface); } else if(buffer == "platform") { platform.append(interface); } else if (buffer == "raw") { if (isRawBacklightEnabled(interface)) { raw.append(interface); } } else { qCWarning(POWERDEVIL) << "Interface type not handled" << buffer; } file.close(); } QDir ledsDir(LED_SYSFS_PATH); ledsDir.setFilter(QDir::Dirs | QDir::NoDot | QDir::NoDotDot | QDir::NoDotAndDotDot | QDir::Readable); ledsDir.setNameFilters({QStringLiteral("*lcd*"), QStringLiteral("*wled*")}); QStringList ledInterfaces = ledsDir.entryList(); if (!ledInterfaces.isEmpty()) { m_dirname = LED_SYSFS_PATH + ledInterfaces.constFirst(); return; } if (!firmware.isEmpty()) { m_dirname = BACKLIGHT_SYSFS_PATH + firmware.constFirst(); return; } if (!platform.isEmpty()) { m_dirname = BACKLIGHT_SYSFS_PATH + platform.constFirst(); return; } if (!raw.isEmpty()) { m_dirname = BACKLIGHT_SYSFS_PATH + raw.constFirst(); return; } } void BacklightHelper::initUsingSysctl() { #ifdef USE_SYSCTL /* * lcd0 is, in theory, the correct device, but some vendors have custom ACPI implementations * which cannot be interpreted. In that case, devices should be reported as "out", but * FreeBSD doesn't care (yet), so they can appear as any other type. Let's search for the first * device with brightness management, then. */ QStringList types; types << QStringLiteral("lcd") << QStringLiteral("out") << QStringLiteral("crt") << QStringLiteral("tv") << QStringLiteral("ext"); Q_FOREACH (const QString &type, types) { for (int i = 0; m_sysctlDevice.isEmpty(); i++) { QString device = QStringLiteral("%1%2").arg(type, QString::number(i)); // We don't care about the value, we only want the sysctl to be there. if (!HAS_SYSCTL(qPrintable(QStringLiteral("hw.acpi.video.%1.active").arg(device)))) { break; } if (HAS_SYSCTL(qPrintable(QStringLiteral("hw.acpi.video.%1.brightness").arg(device))) && HAS_SYSCTL(qPrintable(QStringLiteral("hw.acpi.video.%1.levels").arg(device)))) { m_sysctlDevice = device; break; } } } if (m_sysctlDevice.isEmpty()) { return; } size_t len; if (sysctlbyname(qPrintable(QStringLiteral("hw.acpi.video.%1.levels").arg(m_sysctlDevice)), NULL, &len, NULL, 0) != 0 || len == 0) { return; } int *levels = (int *)malloc(len); if (!levels) { return; } if (sysctlbyname(qPrintable(QString("hw.acpi.video.%1.levels").arg(m_sysctlDevice)), levels, &len, NULL, 0) != 0) { free(levels); return; } // acpi_video(4) supports only some predefined brightness levels. int nlevels = len / sizeof(int); for (int i = 0; i < nlevels; i++) { m_sysctlBrightnessLevels << levels[i]; } free(levels); // Sorting helps when finding max value and when scanning for the nearest level in setbrightness(). qSort(m_sysctlBrightnessLevels.begin(), m_sysctlBrightnessLevels.end()); #endif } ActionReply BacklightHelper::brightness(const QVariantMap &args) { Q_UNUSED(args); ActionReply reply; if (!m_isSupported) { reply = ActionReply::HelperErrorReply(); return reply; } // current brightness int brightness; #ifdef USE_SYSCTL size_t len = sizeof(int); if (sysctlbyname(qPrintable(QStringLiteral("hw.acpi.video.%1.brightness").arg(m_sysctlDevice)), &brightness, &len, NULL, 0) != 0) { reply = ActionReply::HelperErrorReply(); return reply; } #else QFile file(m_dirname + "/brightness"); if (!file.open(QIODevice::ReadOnly)) { reply = ActionReply(ActionReply::HelperErrorType); reply.setErrorDescription(i18n("Can't open file")); qCWarning(POWERDEVIL) << "reading brightness failed with error code " << file.error() << file.errorString(); return reply; } QTextStream stream(&file); stream >> brightness; file.close(); #endif //qCDebug(POWERDEVIL) << "brightness:" << brightness; reply.addData("brightness", brightness); //qCDebug(POWERDEVIL) << "data contains:" << reply.data()["brightness"]; return reply; } ActionReply BacklightHelper::setbrightness(const QVariantMap &args) { ActionReply reply; int actual_brightness = args.value(QStringLiteral("brightness")).toInt(); if (!m_isSupported) { reply = ActionReply::HelperErrorReply(); return reply; } //qCDebug(POWERDEVIL) << "setting brightness:" << actual_brightness; #ifdef USE_SYSCTL int actual_level = -1; int d1 = 101; // Search for the nearest level. Q_FOREACH (int level, m_sysctlBrightnessLevels) { int d2 = qAbs(level - actual_brightness); /* * The list is sorted, so we break when it starts diverging. There may be repeated values, * so we keep going on equal gap (e.g., value = 7.5, levels = 0 0 10 ...: we don't break at * the second '0' so we can get to the '10'). This also means that the value will always * round off to the bigger level when in the middle (e.g., value = 5, levels = 0 10 ...: * value rounds off to 10). */ if (d2 > d1) { break; } actual_level = level; d1 = d2; } size_t len = sizeof(int); if (sysctlbyname(qPrintable(QStringLiteral("hw.acpi.video.%1.brightness").arg(m_sysctlDevice)), NULL, NULL, &actual_level, len) != 0) { reply = ActionReply::HelperErrorReply(); return reply; } #else QFile file(m_dirname + QLatin1String("/brightness")); if (!file.open(QIODevice::WriteOnly)) { reply = ActionReply::HelperErrorReply(); // reply.setErrorCode(ActionReply::ActionReply::UserCancelledError); qCWarning(POWERDEVIL) << "writing brightness failed with error code " << file.error() << file.errorString(); return reply; } int result = file.write(QByteArray::number(actual_brightness)); file.close(); if (result == -1) { reply = ActionReply::HelperErrorReply(); // reply.setErrorCode(file.error()); qCWarning(POWERDEVIL) << "writing brightness failed with error code " << file.error() << file.errorString(); } #endif return reply; } -ActionReply BacklightHelper::syspath(const QVariantMap &args) -{ - Q_UNUSED(args); - - ActionReply reply; - - if (!m_isSupported || m_dirname.isEmpty()) { - reply = ActionReply::HelperErrorReply(); - return reply; - } - - reply.addData("syspath", m_dirname); - - return reply; -} - ActionReply BacklightHelper::brightnessmax(const QVariantMap &args) { Q_UNUSED(args); ActionReply reply; if (!m_isSupported) { reply = ActionReply::HelperErrorReply(); return -1; } // maximum brightness int max_brightness; #ifdef USE_SYSCTL max_brightness = m_sysctlBrightnessLevels.last(); #else QFile file(m_dirname + QLatin1String("/max_brightness")); if (!file.open(QIODevice::ReadOnly)) { reply = ActionReply::HelperErrorReply(); // reply.setErrorCode(file.error()); qCWarning(POWERDEVIL) << "reading max brightness failed with error code " << file.error() << file.errorString(); return reply; } QTextStream stream(&file); stream >> max_brightness; file.close(); #endif //qCDebug(POWERDEVIL) << "max brightness:" << max_brightness; if (max_brightness <= 0) { reply = ActionReply::HelperErrorReply(); return reply; } reply.addData("brightnessmax", max_brightness); //qCDebug(POWERDEVIL) << "data contains:" << reply.data()["brightnessmax"]; return reply; } KAUTH_HELPER_MAIN("org.kde.powerdevil.backlighthelper", BacklightHelper) diff --git a/daemon/backends/upower/backlighthelper.h b/daemon/backends/upower/backlighthelper.h index 1d8fa339..82035e37 100644 --- a/daemon/backends/upower/backlighthelper.h +++ b/daemon/backends/upower/backlighthelper.h @@ -1,66 +1,65 @@ /* This file is part of the KDE project * Copyright (C) 2010 Lukas Tinkl * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License version 2 as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * */ #ifndef BACKLIGHTHELPER_H #define BACKLIGHTHELPER_H #include #include using namespace KAuth; class BacklightHelper: public QObject { Q_OBJECT public: BacklightHelper(QObject *parent = nullptr); public Q_SLOTS: ActionReply brightness(const QVariantMap &args); ActionReply brightnessmax(const QVariantMap &args); ActionReply setbrightness(const QVariantMap &args); - ActionReply syspath(const QVariantMap &args); private: void init(); /** * The kernel offer from version 2.6.37 the type of the interface, and based on that * we can decide which interface is better for us, being the order * firmware-platform-raw */ void initUsingBacklightType(); /** * FreeBSD (and other BSDs) can control backlight via acpi_video(4) */ void initUsingSysctl(); /** * Check for a raw backlight interface if it's enabled by drm driver */ static bool isRawBacklightEnabled(const QString &interface); bool m_isSupported = false; QString m_dirname; QString m_sysctlDevice; QList m_sysctlBrightnessLevels; }; #endif // BACKLIGHTHELPER_H diff --git a/daemon/backends/upower/powerdevilupowerbackend.h b/daemon/backends/upower/powerdevilupowerbackend.h index d640ccfb..5437de80 100644 --- a/daemon/backends/upower/powerdevilupowerbackend.h +++ b/daemon/backends/upower/powerdevilupowerbackend.h @@ -1,126 +1,124 @@ /* This file is part of the KDE project Copyright (C) 2006 Kevin Ottens Copyright (C) 2008-2010 Dario Freddi Copyright (C) 2010 Alejandro Fiestas Copyright (C) 2015 Kai Uwe Broulik This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef POWERDEVILUPOWERBACKEND_H #define POWERDEVILUPOWERBACKEND_H #include #include #include #include "upower_device_interface.h" #include "upower_interface.h" #include "upower_kbdbacklight_interface.h" #define UPOWER_SERVICE "org.freedesktop.UPower" #define UPOWER_PATH "/org/freedesktop/UPower" #define UPOWER_IFACE "org.freedesktop.UPower" #define UPOWER_IFACE_DEVICE "org.freedesktop.UPower.Device" #define LOGIN1_SERVICE "org.freedesktop.login1" #define CONSOLEKIT2_SERVICE "org.freedesktop.ConsoleKit" class XRandRXCBHelper; class XRandrBrightness; class QPropertyAnimation; class DDCutilBrightness; class SysfsBrightness; class Q_DECL_EXPORT PowerDevilUPowerBackend : public PowerDevil::BackendInterface { Q_OBJECT Q_DISABLE_COPY(PowerDevilUPowerBackend) Q_PLUGIN_METADATA(IID "org.kde.powerdevil.upowerbackend"); public: explicit PowerDevilUPowerBackend(QObject* parent = nullptr); virtual ~PowerDevilUPowerBackend(); virtual void init(); static bool isAvailable(); virtual int brightness(BrightnessControlType type = Screen) const; virtual int brightnessMax(BrightnessControlType type = Screen) const; virtual int brightnessKeyPressed(PowerDevil::BrightnessLogic::BrightnessKeyType type, BrightnessControlType controlType); virtual void setBrightness(int value, PowerDevil::BackendInterface::BrightnessControlType type = Screen); virtual KJob* suspend(PowerDevil::BackendInterface::SuspendMethod method); Q_SIGNALS: void brightnessSupportQueried(bool available); private: void enumerateDevices(); void addDevice(const QString &); private Q_SLOTS: void updateDeviceProps(); void slotDeviceAdded(const QString &); void slotDeviceRemoved(const QString &); void slotDeviceAdded(const QDBusObjectPath & path); void slotDeviceRemoved(const QDBusObjectPath & path); void slotDeviceChanged(const QString &); void slotPropertyChanged(); void slotLogin1PrepareForSleep(bool active); void slotScreenBrightnessChanged(); void onKeyboardBrightnessChanged(int); void onPropertiesChanged(const QString &ifaceName, const QVariantMap &changedProps, const QStringList &invalidatedProps); void onDevicePropertiesChanged(const QString &ifaceName, const QVariantMap &changedProps, const QStringList &invalidatedProps); private: void animationValueChanged(const QVariant &value); void initWithBrightness(bool brightnessSupport); // upower devices QMap m_devices; OrgFreedesktopUPowerDeviceInterface *m_displayDevice; // brightness QMap m_cachedBrightnessMap; XRandrBrightness *m_brightnessControl; XRandRXCBHelper *m_randrHelper; DDCutilBrightness *m_ddcBrightnessControl; SysfsBrightness *m_sysfsBrightnessControl; OrgFreedesktopUPowerInterface *m_upowerInterface; OrgFreedesktopUPowerKbdBacklightInterface *m_kbdBacklight; int m_kbdMaxBrightness; int m_brightnessMax = 0; QPropertyAnimation *m_brightnessAnimation = nullptr; // login1 interface QPointer m_login1Interface; bool m_useUPowerSuspend = false; // buttons bool m_lidIsPresent; bool m_lidIsClosed; bool m_onBattery; - //helper path - QString m_syspath; }; #endif // POWERDEVILUPOWERBACKEND_H diff --git a/daemon/backends/upower/sysfsbrightness.cpp b/daemon/backends/upower/sysfsbrightness.cpp index f7056f5d..2d514e65 100644 --- a/daemon/backends/upower/sysfsbrightness.cpp +++ b/daemon/backends/upower/sysfsbrightness.cpp @@ -1,101 +1,77 @@ /* This file is part of the KDE project * Copyright (C) 2017 Bhushan Shah * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License version 2 as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * */ #include #include #include #include #include "sysfsbrightness.h" #define HELPER_ID "org.kde.powerdevil.backlighthelper" SysfsBrightness::SysfsBrightness() { } void SysfsBrightness::detect() { KAuth::Action brightnessAction("org.kde.powerdevil.backlighthelper.brightness"); brightnessAction.setHelperId(HELPER_ID); KAuth::ExecuteJob *brightnessJob = brightnessAction.execute(); connect(brightnessJob, &KJob::result, this, [this, brightnessJob] { if (brightnessJob->error()) { qCWarning(POWERDEVIL) << "org.kde.powerdevil.backlighthelper.brightness failed"; qCDebug(POWERDEVIL) << brightnessJob->errorText(); return; } m_brightness = brightnessJob->data()["brightness"].toInt(); KAuth::Action brightnessMaxAction("org.kde.powerdevil.backlighthelper.brightnessmax"); brightnessMaxAction.setHelperId(HELPER_ID); KAuth::ExecuteJob *brightnessMaxJob = brightnessMaxAction.execute(); connect(brightnessMaxJob, &KJob::result, this, [this, brightnessMaxJob] { if (brightnessMaxJob->error()) { qCWarning(POWERDEVIL) << "org.kde.powerdevil.backlighthelper.brightnessmax failed"; qCDebug(POWERDEVIL) << brightnessMaxJob->errorText(); } else { m_brightnessMax = brightnessMaxJob->data()["brightnessmax"].toInt(); } - - KAuth::Action syspathAction("org.kde.powerdevil.backlighthelper.syspath"); - syspathAction.setHelperId(HELPER_ID); - KAuth::ExecuteJob* syspathJob = syspathAction.execute(); - connect(syspathJob, &KJob::result, this, - [this, syspathJob] { - if (syspathJob->error()) { - qCWarning(POWERDEVIL) << "org.kde.powerdevil.backlighthelper.syspath failed"; - qCDebug(POWERDEVIL) << syspathJob->errorText(); - return; - } - m_syspath = syspathJob->data()["syspath"].toString(); - m_syspath = QFileInfo(m_syspath).readLink(); - - m_isLedBrightnessControl = m_syspath.contains(QLatin1String("/leds/")); - //TODO: handle the brightness changing from other sources - //if (!m_isLedBrightnessControl) { - // UdevQt::Client *client = new UdevQt::Client(QStringList("backlight"), this); - // connect(client, SIGNAL(deviceChanged(UdevQt::Device)), SLOT(onDeviceChanged(UdevQt::Device))); - //} - - m_isSupported = (m_brightnessMax > 0); - return; - } - ); - syspathJob->exec(); + m_isSupported = (m_brightnessMax > 0); + return; } ); brightnessMaxJob->exec(); } ); brightnessJob->exec(); } void SysfsBrightness::setBrightness(int value) { KAuth::Action action("org.kde.powerdevil.backlighthelper.setbrightness"); action.setHelperId(HELPER_ID); action.addArgument("brightness", value); KAuth::ExecuteJob *job = action.execute(); // we don't care about the result since executing the job sync is bad job->start(); } diff --git a/daemon/backends/upower/sysfsbrightness.h b/daemon/backends/upower/sysfsbrightness.h index 0e33091a..3154934d 100644 --- a/daemon/backends/upower/sysfsbrightness.h +++ b/daemon/backends/upower/sysfsbrightness.h @@ -1,48 +1,46 @@ /* This file is part of the KDE project * Copyright (C) 2017 Bhushan Shah * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License version 2 as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * */ #ifndef SYSFSBRIGHTNESS_H #define SYSFSBRIGHTNESS_H #include class SysfsBrightness: public QObject { Q_OBJECT public: SysfsBrightness(); void detect(); bool isSupported() { return m_isSupported; }; int brightness() const { return m_brightness; }; int brightnessMax() { return m_brightnessMax; }; void setBrightness(int value); private: int m_brightness = 0; int m_brightnessMax = 0; - QString m_syspath; - bool m_isLedBrightnessControl; bool m_isSupported = false; }; #endif /* end of include guard: SYSFSBRIGHTNESS_H */