Michele Calgaro
41e0f335b5
Removed explicit usage of the 'register' keyword.
...
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit aa98dbfe80
)
5 years ago
Slávek Banko
352be1b977
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>
(cherry picked from commit ecd1e4bd40
)
5 years ago
Slávek Banko
ddf0666f4c
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>
(cherry picked from commit ba82cdf5be
)
5 years ago
Slávek Banko
d51d6d349d
tdehw: Fix wrong merge location in prior commit.
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 8856d5dde1
)
5 years ago
Slávek Banko
53381ab391
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>
(cherry picked from commit 86c1d896c7
)
5 years ago
Slávek Banko
2e7ef95663
tdehwlib: Classify the charger as an AC adapter, not as a battery.
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 3b0f07f2cd
)
5 years ago
Michele Calgaro
0f7cda9d52
tdehw: improved code for mount table.
...
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 09835dceb7
)
5 years ago
Slávek Banko
9ce98047ff
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>
(cherry picked from commit dfe3c9649f
)
6 years ago
Slávek Banko
7d83a0cb92
Fix crash in tdehwlib if /sys/devices/system/cpu/cpu* is not accessible
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 051acc7df5
)
7 years ago
Slávek Banko
a8e587a973
tdehwlib: Add a rule for classifying parport device
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit eb6f8213d4
)
8 years ago
Slávek Banko
2b8dc1971b
tdehwlib: Add a rule for classifying remote control devices
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit cc4f1996df
)
8 years ago
Slávek Banko
b0c326c2d0
tdehwlib: Allow to gather connection information on virtual net devices
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit d1280c31d9
)
8 years ago
Slávek Banko
69112fe54a
tdehwlib: Allow to classify virtual devices by subsystem
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a73511a98d
)
8 years ago
Slávek Banko
a7009dd252
Fix memory leak after processing udev_monitor
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit d2b61ae9da
)
8 years ago
Slávek Banko
9ef769d0e5
Fix memory leak after processing udev_device
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 1a5bc0e4ff
)
8 years ago
Timothy Pearson
dc7e40a1a9
Probe partitions to get filesystem type
...
This fixes problems with LUKS partitions not being detected
(cherry picked from commit 30c008d551
)
8 years ago
Timothy Pearson
f66944e531
Properly classify Lenovo USB camera platform subdevices
...
(cherry picked from commit b18bff9ad8
)
8 years ago
Slávek Banko
72efbe384e
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>
(cherry picked from commit 36481f68c1
)
9 years ago
Slávek Banko
6958076530
Fix mountable flag for disk partitions
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit ff469a69ff
)
9 years ago
Slávek Banko
97e220ed39
Add a rule for classifying ATA Compact Flash Adapter
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 613eadbbc3
)
9 years ago
Slávek Banko
c7ba84312e
Set partition disk type and status based on the parent device
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 5104679806
)
9 years ago
Slávek Banko
762f90beac
Set hotpluggable flag for flash disks instead of removable
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f8fbb3bd78
)
9 years ago
Slávek Banko
9b33264c99
Force removable flag for flask disks in tdehwlib
...
This resolves Bug 2473
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit dc350e6c64
)
9 years ago
Slávek Banko
fd96a6c2a8
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>
(cherry picked from commit f4fb3a8e71
)
9 years ago
Slávek Banko
111cc009ea
Fix ZIP drive classification in tdehwlib
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 6dfc04c51a
)
9 years ago
Slávek Banko
107e863644
Classify flash drives as HDD in tdehwlib
...
This relates to Bug 2473
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 6a2a9de49c
)
9 years ago
Slávek Banko
cec0b42a3c
Prefer encoded disk labels in tdehwlib
...
because it contains unadjusted disk labels
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 893ac9fad0
)
9 years ago
Slávek Banko
bec14c7a28
Add floppy into disk type clasification in tdehwlib
...
This resolves Bug 2567
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit ba2a3bc188
)
9 years ago
Slávek Banko
ad6b5add68
Fix disk type clasification in tdehwlib
...
This resolves Bug 2473
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 68102d50e9
)
9 years ago
Slávek Banko
43b1218e15
Fix calculation of remaining charging time in TDE hardware library
...
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 075cf11458
)
9 years ago
Timothy Pearson
bc746bd059
Fix hardware class file matching algorithm
...
Fix overly broad floppy device matching rules
This resolves Bug 2534
(cherry picked from commit fd0de2b581
)
9 years ago
Timothy Pearson
08e045c17a
Classify memstick_host devices
...
(cherry picked from commit 669345d6b8
)
10 years ago
Timothy Pearson
799c91ef96
Bring keyboard icon into XDG compliance
...
(cherry picked from commit 3e23bfa58d
)
10 years ago
Timothy Pearson
1a2f871729
Bring printer1 icon into XDG compliance
...
(cherry picked from commit 61f6eb5a1e
)
10 years ago
Timothy Pearson
1646faa695
Bring mouse icon into XDG compliance
...
(cherry picked from commit 891dbd6b98
)
10 years ago
Timothy Pearson
394f67b84c
Rename most device icons to comply with XDG standards
...
(cherry picked from commit 86686421b5
)
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
Timothy Pearson
e1ff3591ff
Bring package_development, package_games, package_graphics, package_network, package_multimedia, package_wordprocessing, edu_science, package_utilities, input_devices_settings, kcmsystem, personal, and looknfeel icons into XDG compliance
10 years ago
Timothy Pearson
fee189b236
Bring camera icons into XDG compliance
10 years ago
Timothy Pearson
2c850d93a7
Fix potential crash if CPU #0 is not available
10 years ago
Timothy Pearson
54578ce023
Add mimeTypePtrFast method to KFileItem
...
This relates to Bug 699
Clean up a couple of minor build warnings
Classify usbmisc devices
10 years ago
Timothy Pearson
8c0d2c2919
Classify regulator devices
10 years ago
Timothy Pearson
6b07d53d94
Update hardware device classification map
...
Fix potential infinite loop in TDEStyle
10 years ago
Timothy Pearson
3d06098ece
Add a few unclassified devices to the TDE HW manager database
11 years ago
Slávek Banko
2c730f70a6
Optimize watching switches on input event devices
...
This relates to Bugs 1992 and 2052
11 years ago
Francois Andriot
1afbea2c25
Small bug fix
...
This relates to Bug 1992
11 years ago
Francois Andriot
3c9d481f7f
Greatly improve tdehwlib polling performance
...
This relates to Bug 1992
11 years ago