summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw
Commit message (Collapse)AuthorAgeFilesLines
* tdehwlib: Fix parsing of CPU cores frequency informationSlávek Banko2020-01-091-77/+71
| | | | | | | | | | | | | | | | + The current frequency is parsed from the scaling_cur_freq file If the current frequency is not found in /proc/cpuinfo, the attempt to read value from cpuinfo_cur_freq failed because only root can read this file. + The have_frequency flag is not set when parsing current frequency from sysfs Setting the have_frequency flag after parsing current frequency for the first core caused the current frequency not to be parsed for other cores. + Frequency characteristics are parsed for all cores The assumption that the frequency characteristics for all cores will be the same as the first core is no longer reliable. There are heterogeneous architectures - for example ARM big.LITTLE. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* tdehw: Fix wrong merge location in prior commit.Slávek Banko2020-01-081-3/+3
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* tdehwlib: Adjusted parsing of battery informationSlávek Banko2020-01-082-10/+36
| | | | | | | | | | | | | | | | | | | | | | + Added initialization of all values Some batteries do not provide all values and, without initialization, values may contain dubious data. + Added reading of current battery capacity value in percent (capacity) Some batteries may provide the current capacity value in percent instead of the current energy value. + Added check whether the battery provides current energy value (charge_now or energy_now) The current energy is calculated if the value is not provided in the battery information. + Added reading of estimated time to empty battery (time_to_empty_now) The remaining time is calculated if the value is not provided in the battery information. If the battery does not provide charging current information, the estimated time to charge the battery cannot be calculated. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* tdehwlib: Classify the charger as an AC adapter, not as a battery.Slávek Banko2020-01-081-0/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Removed sync dbus call code in tdenetworkmanager to align to latestMichele Calgaro2019-07-201-50/+0
| | | | | | dbus-1-tqt code. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Normalized names of devices to avoid unintentional mixed used of icons from ↵Michele Calgaro2019-07-082-5/+8
| | | | | | | | different icon themes. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Adjusted to use new TQStringVariantMap type.Michele Calgaro2019-07-074-38/+35
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Reworked code for eject/mount/unmount operations to support new ↵Michele Calgaro2019-07-074-255/+260
| | | | | | TDEStorageOpResult return type. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tdehw: code restructuring for tdestoragedevice.Michele Calgaro2019-07-074-483/+442
| | | | | | | | 1. added disk helper source files 2. removed WITH_UDISKS2, WITH_UDISK, WITH_UDEVIL defines. The respective code is always included 3. order of execution for mount/umount activities: udisks2, udisk, udevil, pmount. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tdehw: TRUE/FALSE --> true/false renaming.Michele Calgaro2019-07-0720-161/+159
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tdehw: avoid crashing kded when using udisks/udisks2 to operate onMichele Calgaro2019-07-071-0/+6
| | | | | | drives that contain dashes. This relates to issue #32. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tdehw: improved code for mount table.Michele Calgaro2019-07-052-20/+18
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Adapted to latest dbus-1-tqt version (TQT_DBusObjectPath inheriting from ↵Michele Calgaro2019-05-212-4/+5
| | | | | | TQString). Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use new function TQT_DBusData::getAsVariantData() instead of localMichele Calgaro2019-05-163-148/+127
| | | | | | version of it. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fixed moc inclusion after last changes in dbus-1-tqt.Slávek Banko2019-05-021-11/+8
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tdehwlib: Fix the flag setting whether the storage device contains the file ↵Slávek Banko2019-02-271-1/+1
| | | | | | | | system. This resolves bug 2232, bug 2607 and bug 2946. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fixed support for logind power state calls.Michele Calgaro2019-02-241-46/+39
| | | | | | This resolves bug 2661 and bug 2975. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fixed FTBFS caused by libcryptsetup 2.0Michele Calgaro2018-02-252-22/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix crash in tdehwlib if /sys/devices/system/cpu/cpu* is not accessibleSlávek Banko2017-09-231-3/+5
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* tdehwlib: Use TDENetworkDevice in TDENetworkConnectionManager instead of MAC ↵Slávek Banko2017-06-175-159/+51
| | | | | | | | | | | | | | | | | address Use interface name in TDENetworkConnectionManager_BackendNM instead of MAC address This relates to bug 2748 The name of the network interface seems to be a more stable identifier than the MAC address because the MAC address can be changed easily or even automatically - see randomization of MAC addresses on wireless interfaces. Therefore, the use of the MAC address as a network interface identifier was abandoned. Beware, this change is an API / ABI change! However, most changes are internal and the only one affected is application TDENetworkManager. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* tdehwlib: Add a rule for classifying parport deviceSlávek Banko2017-06-171-1/+2
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* tdehwlib: Add a rule for classifying remote control devicesSlávek Banko2017-06-171-0/+4
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* tdehwlib: Allow to gather connection information on virtual net devicesSlávek Banko2017-06-171-1/+2
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* tdehwlib: Allow to classify virtual devices by subsystemSlávek Banko2017-06-171-3/+3
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix memory leak after processing udev_monitorSlávek Banko2017-03-251-0/+3
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix memory leak after processing udev_deviceSlávek Banko2017-03-251-0/+2
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Probe partitions to get filesystem typeTimothy Pearson2016-09-051-4/+2
| | | | This fixes problems with LUKS partitions not being detected
* Properly classify Lenovo USB camera platform subdevicesTimothy Pearson2016-09-051-0/+5
|
* Make cryptographic card reader detection on single readers sytems more robustTimothy Pearson2016-09-041-4/+11
|
* Add fallback to match udev cryptographic card reader name with PCSC vendor ↵Timothy Pearson2016-09-041-1/+29
| | | | strings
* Add IBM VIO deviceTimothy Pearson2016-07-231-0/+3
|
* Add nvmem device typeTimothy Pearson2016-07-232-0/+13
|
* tdecore: Fixed hybrid suspend (aka suspend to RAM + suspend to disk) support ↵Michele Calgaro2016-05-041-6/+8
| | | | | | | | | using HAL. org.freedesktop.Hal.Device.SystemPowerManagement/SuspendHybrid requires a parameter when invoked. This relates to bug 2601. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tdecore: Improved code for hybrid suspend (aka suspend to RAM + suspend to ↵Michele Calgaro2016-05-023-12/+25
| | | | | | | | disk). Now code is more consistent. This relates to bug 2601. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tdecore: complete previous commit, one file was forgotten by mistake.Michele Calgaro2016-04-261-8/+14
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tdecore: Added DBus support for hybrid suspend (aka suspend to RAM + suspend ↵Michele Calgaro2016-04-261-2/+129
| | | | | | | | to disk). This relates to bug 2601. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tdecore: Initial support for hybrid suspend (aka suspend to RAM + suspend to ↵Michele Calgaro2016-04-243-18/+180
| | | | | | | | | disk). Update to dbus interface and hardware device manager will be commit separately. This relates to bug 2601. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix crash in tdehwlib on partitions without parent diskSlávek Banko2016-02-111-6/+9
| | | | | | This applies for example to the software RAID defined in the BIOS Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix mountable flag for disk partitionsSlávek Banko2016-02-041-1/+5
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Add a rule for classifying ATA Compact Flash AdapterSlávek Banko2016-02-041-1/+2
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix icon of mounted camera in tdehwlibSlávek Banko2016-02-041-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Set partition disk type and status based on the parent deviceSlávek Banko2016-02-041-1/+15
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Set hotpluggable flag for flash disks instead of removableSlávek Banko2016-02-041-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Force removable flag for flask disks in tdehwlibSlávek Banko2016-01-311-0/+10
| | | | | | This resolves Bug 2473 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix crash in tdehwlib if not exists /sys/devices/system/cpuSlávek Banko2016-01-271-13/+15
| | | | | | This resolves Bug 2584 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix ZIP drive classification in tdehwlibSlávek Banko2016-01-271-8/+9
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Classify flash drives as HDD in tdehwlibSlávek Banko2016-01-271-1/+6
| | | | | | This relates to Bug 2473 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Add support for udevil to mount/unmount removable drivesSlávek Banko2016-01-232-2/+42
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix using of custom mountpoints with pmount in tdehwlibSlávek Banko2016-01-231-1/+12
| | | | | | This partially resolves Bug 2576 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Prefer encoded disk labels in tdehwlibSlávek Banko2016-01-231-1/+7
| | | | | | because it contains unadjusted disk labels Signed-off-by: Slávek Banko <slavek.banko@axis.cz>