Slávek Banko
ecd1e4bd40
tdehwlib: Adjusted parsing of battery information
...
+ Added reading of estimated time to fully charged battery
(time_to_full_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>
5 years ago
Slávek Banko
ba82cdf5be
tdehwlib: Fix parsing of CPU cores frequency information
...
+ 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>
5 years ago
Slávek Banko
8856d5dde1
tdehw: Fix wrong merge location in prior commit.
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko
86c1d896c7
tdehwlib: Adjusted parsing of battery information
...
+ 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>
5 years ago
Slávek Banko
3b0f07f2cd
tdehwlib: Classify the charger as an AC adapter, not as a battery.
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Michele Calgaro
11935291c7
Normalized names of devices to avoid unintentional mixed used of icons from different
...
icon themes.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
Michele Calgaro
c76553c4fb
tdehw: TRUE/FALSE --> true/false renaming.
...
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
Michele Calgaro
09835dceb7
tdehw: improved code for mount table.
...
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
Michele Calgaro
536cfddc84
Use new function TQT_DBusData::getAsVariantData() instead of local
...
version of it.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Slávek Banko
dfe3c9649f
tdehwlib: Fix the flag setting whether the storage device contains the file system.
...
This resolves bug 2232, bug 2607 and bug 2946.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko
051acc7df5
Fix crash in tdehwlib if /sys/devices/system/cpu/cpu* is not accessible
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Slávek Banko
eb6f8213d4
tdehwlib: Add a rule for classifying parport device
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Slávek Banko
cc4f1996df
tdehwlib: Add a rule for classifying remote control devices
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Slávek Banko
d1280c31d9
tdehwlib: Allow to gather connection information on virtual net devices
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Slávek Banko
a73511a98d
tdehwlib: Allow to classify virtual devices by subsystem
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Slávek Banko
d2b61ae9da
Fix memory leak after processing udev_monitor
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
8 years ago
Slávek Banko
1a5bc0e4ff
Fix memory leak after processing udev_device
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
8 years ago
Timothy Pearson
30c008d551
Probe partitions to get filesystem type
...
This fixes problems with LUKS partitions not being detected
8 years ago
Timothy Pearson
b18bff9ad8
Properly classify Lenovo USB camera platform subdevices
8 years ago
Timothy Pearson
d82b64cbbd
Add IBM VIO device
8 years ago
Timothy Pearson
d15fe834b1
Add nvmem device type
8 years ago
Michele Calgaro
92394e2850
tdecore: Improved code for hybrid suspend (aka suspend to RAM + suspend to disk).
...
Now code is more consistent. This relates to bug 2601.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 years ago
Michele Calgaro
3b095cf3cd
tdecore: Initial support for hybrid suspend (aka suspend to RAM + suspend to 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>
9 years ago
Slávek Banko
36481f68c1
Fix crash in tdehwlib on partitions without parent disk
...
This applies for example to the software RAID defined in the BIOS
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko
ff469a69ff
Fix mountable flag for disk partitions
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko
613eadbbc3
Add a rule for classifying ATA Compact Flash Adapter
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko
5104679806
Set partition disk type and status based on the parent device
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko
f8fbb3bd78
Set hotpluggable flag for flash disks instead of removable
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko
dc350e6c64
Force removable flag for flask disks in tdehwlib
...
This resolves Bug 2473
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko
f4fb3a8e71
Fix crash in tdehwlib if not exists /sys/devices/system/cpu
...
This resolves Bug 2584
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko
6dfc04c51a
Fix ZIP drive classification in tdehwlib
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko
6a2a9de49c
Classify flash drives as HDD in tdehwlib
...
This relates to Bug 2473
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko
893ac9fad0
Prefer encoded disk labels in tdehwlib
...
because it contains unadjusted disk labels
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko
ba2a3bc188
Add floppy into disk type clasification in tdehwlib
...
This resolves Bug 2567
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko
68102d50e9
Fix disk type clasification in tdehwlib
...
This resolves Bug 2473
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko
075cf11458
Fix calculation of remaining charging time in TDE hardware library
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Timothy Pearson
fd0de2b581
Fix hardware class file matching algorithm
...
Fix overly broad floppy device matching rules
This resolves Bug 2534
9 years ago
Timothy Pearson
6a0fb5c342
Add new timekeeping class to tdehwlib
...
Classify a number of new devices
9 years ago
Timothy Pearson
c0cca8ca95
Add fingerprint reader and test/measurement devices classes to tdehwlib
9 years ago
Timothy Pearson
31ebb6568f
Add preliminary cryptographic card support to TDEHWLib
9 years ago
Timothy Pearson
5fdf839b35
Add cryptographic card device type
...
Add hub device type
Fix incorrect USB subclass read
9 years ago
Timothy Pearson
669345d6b8
Classify memstick_host devices
10 years ago
Timothy Pearson
3e23bfa58d
Bring keyboard icon into XDG compliance
10 years ago
Timothy Pearson
61f6eb5a1e
Bring printer1 icon into XDG compliance
10 years ago
Timothy Pearson
891dbd6b98
Bring mouse icon into XDG compliance
10 years ago
Timothy Pearson
86686421b5
Rename most device icons to comply with XDG standards
10 years ago
Timothy Pearson
066f3174aa
Fix detection of laptop AC adapters
10 years ago
Timothy Pearson
08d4e3062c
Do not flag disk devices/partitions as mountable if a partition table is present under the given device/partition
...
This relates to Bug 2232
10 years ago
Timothy Pearson
7b66a28f37
Add Hidden storage device attribute
...
This relates to Bug 2211
10 years ago
Timothy Pearson
3b57fe6816
Fix hardware control center crashes on device hot remove
...
Fix incorrect decoding of hex escaped device names
10 years ago